Skip to content

Commit

Permalink
Handle all missing data with MissingDataError
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Oct 10, 2023
1 parent ce5dcce commit fa0ffac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions perigee_health_plots/pass_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,8 @@ def orbit_parse(pass_dir, min_samples=5, time_interval=20):
'ccd_temp': hdr3['ccd_temp']}

if not len(parsed_telem['ccd_temp'].vals):
if DateTime(maxtime) - DateTime(mintime) < 1.5:
raise MissingDataError("No HDR3 data for pass {}".format(
raise MissingDataError("No HDR3 data for pass {}".format(
pass_times[0]['obsid_datestart']))
else:
raise ValueError("Long pass with no HDR3")
return parsed_telem


Expand Down

0 comments on commit fa0ffac

Please sign in to comment.