chandra-mta / MTA

0 stars 0 forks source link

(Sci_run_interrupt) - Inconsistent Time formatting in compute_sci_run_gap.py #30

Open william-aaron-CFA opened 10 months ago

william-aaron-CFA commented 10 months ago

Two version of the sci_run_compute_gap.py script exist. One makes use of current sot package version of Chandra.Time to compute the gap of science interruption based on a particular radiation event.

The old version expect '%Y:%m:%d:%H:%M:%S' format, while the new version expects a ‘%Y:%J:%H:%M:%S’ format. However the continuing scripts expect the old format, requiring the user to manually switch between formats in the interruption_time_list file.

Would be preferable to have consistent/dynamically updating time format across the entire script set, as well as ideally a better initialization method for a sci_interrupt event rather than filling out a text line.