From fa0ffac38439681be59e540f65229b64609b2aac Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Tue, 10 Oct 2023 12:41:40 -0400 Subject: [PATCH] Handle all missing data with MissingDataError --- perigee_health_plots/pass_plots.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/perigee_health_plots/pass_plots.py b/perigee_health_plots/pass_plots.py index fe2ab68..e57a27d 100755 --- a/perigee_health_plots/pass_plots.py +++ b/perigee_health_plots/pass_plots.py @@ -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