Skip to content

Commit

Permalink
simplify date property
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes committed Nov 3, 2022
1 parent 942768b commit 27418e0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions eispac/core/eismap.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,7 @@ def date(self):
# We do this because we want to make sure we are constructing our
# coordinate frames from DATE_AVG (the midpoint of the raster) and
# not DATE-OBS which is the beginning of the raster.
time = self.date_average
time = time or self._date_obs
time = time or self.date_start
time = time or self.date_end

# This will fall back to the dafault behavior in GenericMap if the
# date property is still None, i.e. all other keys are still missing.
time = time or super().date

return time
return self.date_average or super().date

@classmethod
def is_datasource_for(cls, data, header, **kwargs):
Expand Down

0 comments on commit 27418e0

Please sign in to comment.