Skip to content

Commit b054234

Browse files
authored
Make astropy times use isot under-the-hood. (#348)
1 parent df15358 commit b054234

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

romanisim/l3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ def add_more_metadata(metadata, efftimes, filter_name, wcs, shape, nexposures):
744744
meantime - maxtime / 24 / 60 / 60 / 2, format='mjd')
745745
metadata['coadd_info']['time_last'] = Time(
746746
meantime + maxtime / 24 / 60 / 60 / 2, format='mjd')
747+
for field_name in ['time_first', 'time_last']:
748+
metadata['coadd_info'][field_name] = Time(
749+
metadata['coadd_info'][field_name].isot)
747750
metadata['coadd_info']['max_exposure_time'] = maxtime
748751
metadata['coadd_info']['exposure_time'] = meanexptime
749752
for step in ['flux', 'outlier_detection', 'skymatch', 'resample']:

0 commit comments

Comments
 (0)