Commit 483cf192 authored by Guillaume's avatar Guillaume
Browse files

Fix climatology detection

parent 532d9690
......@@ -93,7 +93,7 @@ class DRSParser(object):
tstart, tend, clim = '', '', 'False'
# Set clim to True and rename basename to match usual template in case of climatology file.
if basename.endswith(''):
if basename.endswith('-clim'):
basename, clim = basename.replace('-clim', ''), 'True'
# Check vocabulary.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment