Skip to content

Commit

Permalink
Merge pull request #43 from lsst/tickets/DM-42080
Browse files Browse the repository at this point in the history
DM-42080: Add effTime to computeExposureSummaryStats
  • Loading branch information
kadrlica authored Jan 31, 2024
2 parents 21efbaf + 87adb66 commit 4c49066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions python/lsst/drp/tasks/gbdesAstrometricFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,9 +897,7 @@ def _load_refcat(
refCatMetadata = refObjectLoader.refCats[0].get().getMetadata()
refCatVersion = refCatMetadata["REFCAT_FORMAT_VERSION"]
if refCatVersion == 2:
raDecCov = (
(refCat["coord_ra_coord_dec_Cov"] * u.radian**2).to(u.degree**2).to_value().tolist()
)
raDecCov = (refCat["coord_ra_coord_dec_Cov"] * u.radian**2).to(u.degree**2).to_value().tolist()
else:
raDecCov = np.zeros(len(ra))

Expand Down
3 changes: 3 additions & 0 deletions python/lsst/drp/tasks/update_visit_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@ def run(
summary_stats, exposure.getMaskedImage()
)

# Update the effective exposure time calculation
self.compute_summary_stats.update_effective_time_stats(summary_stats, exposure)

summary_stats.update_record(output_record)
del exposure

Expand Down

0 comments on commit 4c49066

Please sign in to comment.