Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a processing error in acq and guide stats #304

Open
wants to merge 2 commits into
base: vv-error
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mica/stats/update_acq_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _get_obsids_to_update(check_missing=False):
try:
with tables.open_file(table_file, "r") as h5:
tbl = h5.get_node("/", "data")
last_tstart = tbl.cols.guide_tstart[tbl.colindexes["guide_tstart"][-1]]
last_tstart = tbl.cols.guide_tstart[tbl.colindexes["guide_tstart"][-1]]
except Exception:
last_tstart = "2002:012:12:00:00"
kadi_obsids = events.obsids.filter(start=last_tstart)
Expand Down
4 changes: 3 additions & 1 deletion mica/stats/update_guide_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ def _get_obsids_to_update(check_missing=False, table_file=None, start=None, stop
try:
with tables.open_file(table_file, "r") as h5:
tbl = h5.get_node("/", "data")
last_tstart = tbl.cols.kalman_tstart[tbl.colindexes["kalman_tstart"][-1]]
last_tstart = tbl.cols.kalman_tstart[
tbl.colindexes["kalman_tstart"][-1]
]
except Exception:
last_tstart = start if start is not None else "2002:012:12:00:00"
kadi_obsids = events.obsids.filter(start=last_tstart, stop=stop)
Expand Down