Skip to content

Commit

Permalink
More WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Aug 19, 2024
1 parent 2c5aee7 commit 6e79100
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.7
rev: v0.6.1
hooks:
# Run the linter.
- id: ruff
Expand Down
21 changes: 14 additions & 7 deletions aca_hi_bgd/per_obs_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

</HEADER>
<BODY>
<H1>High background events in obsid {{ obsid }}</H1>
<A href="../../index.html">Back to top index</A>

<H1>High background events in dwell {{dwell_start}} obsid {{ obsid }}</H1>

<H2>Summary of background events with bgdavg plots</H2>
Each entry in the table is a link to a section on the page with slot images.
Expand All @@ -17,9 +19,9 @@ <H2>Summary of background events with bgdavg plots</H2>
<tr>
<td><A HREF="#{{ event['index']}}"><img src={{ event['bgdplot'] }}></A></td>
<td><TABLE border=1>
<tr><td>start of bgdavg > 100</td><td>{{event['event_datestart']}}</td></tr>
<tr><td>duration</td><td>{{event['duration']}}</td></tr>
<tr><td>slot_seconds</td><td>{{event['slot_seconds']}}</td></tr>
<tr><td>start of bgdavg > threshold</td><td>{{event['event_datestart']}}</td></tr>
<tr><td>duration</td><td>{{ '%.1f'|format(event['duration'])}}</td></tr>
<tr><td>slot_seconds</td><td>{{ '%.1f'|format(event['slot_seconds'])}}</td></tr>
</TABLE></td>
</tr>
</TABLE>
Expand All @@ -33,9 +35,9 @@ <h3>Event {{event['index']}} starting at {{event['event_datestart']}}</h3>
<TABLE border=1>
<tr>
<td><TABLE border=1>
<tr><td>start of bgdavg > 100</td><td>{{event['event_tstart']}}</td></tr>
<tr><td>duration</td><td>{{event['duration']}}</td></tr>
<tr><td>slot_seconds</td><td>{{event['slot_seconds']}}</td></tr>
<tr><td>start of bgdavg > threshold</td><td>{{ '%.2f'|format(event['event_tstart']) }}</td></tr>
<tr><td>duration</td><td>{{ '%.1f'|format(event['duration'])}}</td></tr>
<tr><td>slot_seconds</td><td>{{ '%.1f'|format(event['slot_seconds'])}}</td></tr>
</TABLE>
</td>
<td><img src={{ event['bgdplot'] }}></td>
Expand All @@ -51,6 +53,11 @@ <h3>Event {{event['index']}} starting at {{event['event_datestart']}}</h3>
<td width="100px">{{ slot.bgdavg }}</td>
{%- endfor %}
</tr>
<tr><td>corr outer min</td>
{% for slot in row['slots'] %}
<td width="100px">{{ '%.1f'|format(slot.outer_min_7_magsub) }}</td>
{%- endfor %}
</tr>
{%- endfor %}
</TABLE>
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion aca_hi_bgd/top_level_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</HEADER>
<BODY>
<TABLE BORDER=1>
<TR><TH>Date</TH><TH>Obsid</TH><TH>N events</TH><TH>N Slots</TH>
<TR><TH>Dwell Start</TH><TH>Obsid</TH><TH>N events</TH><TH>N Slots</TH>
<TH>Max Duration</TH><TH>Max Slot Seconds</TH><TH>Sun Pitch</TH></TR>
{% for obs in obs_events %}
<TR>
Expand Down
Loading

0 comments on commit 6e79100

Please sign in to comment.