Skip to content

Commit

Permalink
Exposure times are now quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 19, 2018
1 parent 5dc1149 commit b7c2759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/daf/butler/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def makeExposureEntryFromObsInfo(dataId, obsInfo):
result = {
"datetime_begin": obsInfo.datetime_begin.to_datetime(),
"datetime_end": obsInfo.datetime_end.to_datetime(),
"exposure_time": obsInfo.exposure_time,
"dark_time": obsInfo.dark_time
"exposure_time": obsInfo.exposure_time.to_value("s"),
"dark_time": obsInfo.dark_time.to_value("s")
}
result.update(dataId)
return result
Expand Down Expand Up @@ -124,7 +124,7 @@ def makeVisitEntryFromObsInfo(dataId, obsInfo):
result = {
"datetime_begin": obsInfo.datetime_begin.to_datetime(),
"datetime_end": obsInfo.datetime_end.to_datetime(),
"exposure_time": obsInfo.exposure_time,
"exposure_time": obsInfo.exposure_time.to_value("s"),
}
result.update(dataId)
return result

0 comments on commit b7c2759

Please sign in to comment.