Skip to content

Commit

Permalink
MAINT: Don't add U_TIME if TIME doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
guillochon committed Jul 21, 2016
1 parent 13ee8d5 commit 37c0378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrocats/catalog/photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, parent, **kwargs):
self[bmf] = temp

# Time unit is necessary for maximum time determination
if self._KEYS.U_TIME not in self:
if self._KEYS.U_TIME not in self and self._KEYS.TIME in self:
self._log.info('`{}` not found in photometry, assuming '
' MJD.'.format(self._KEYS.U_TIME))
self[self._KEYS.U_TIME] = 'MJD'
Expand Down

0 comments on commit 37c0378

Please sign in to comment.