Skip to content

Commit

Permalink
Merge pull request #885 from xylar/fix_ohc_map
Browse files Browse the repository at this point in the history
Fix config options for reference-year climatologies
  • Loading branch information
xylar authored Aug 16, 2022
2 parents a29eeed + c321057 commit 2669d9d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ def get_start_and_end(self):
startDate = '{:04d}-01-01_00:00:00'.format(startYear)
endDate = '{:04d}-12-31_23:59:59'.format(endYear)

config.set('climatology', 'startYear', str(startYear))
config.set('climatology', 'startDate', startDate)
config.set('climatology', 'endYear', str(endYear))
config.set('climatology', 'endDate', endDate)
# using "user=True" so these changes take priority over user config
# options
config.set('climatology', 'startYear', str(startYear), user=True)
config.set('climatology', 'startDate', startDate, user=True)
config.set('climatology', 'endYear', str(endYear), user=True)
config.set('climatology', 'endDate', endDate, user=True)

return startYear, endYear

Expand Down

0 comments on commit 2669d9d

Please sign in to comment.