Skip to content

Commit

Permalink
Add required Timescale argument
Browse files Browse the repository at this point in the history
N.b. was rebased to use C++ name, but vestiges may be visible on
master due to user error.
  • Loading branch information
RobertLuptonTheGood committed Sep 27, 2016
1 parent 33a9219 commit 051736e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/pipe/drivers/constructCalibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def getOutputId(self, expRefList, calibId):
outputId.update(calibId)
return outputId

def getMjd(self, dataId):
def getMjd(self, dataId, timescale=dafBase.DateTime.MJD):
"""Determine the Modified Julian Date (MJD) from a data identifier"""
dateObs = dataId[self.config.dateObs]

Expand All @@ -396,7 +396,7 @@ def getMjd(self, dataId):
elif not dateObs.endswith("Z"):
dateObs += "Z"

return dafBase.DateTime(dateObs).get(dafBase.DateTime.MJD)
return dafBase.DateTime(dateObs, timescale).get(dafBase.DateTime.MJD)

def getFilter(self, dataId):
"""Determine the filter from a data identifier"""
Expand Down

0 comments on commit 051736e

Please sign in to comment.