Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ledm committed Dec 14, 2023
1 parent 9efd700 commit 9d88a5d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bgcval2/analysis_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,12 @@ def load_comparison_yml(master_compare_yml_fn):
details['dpi'] = input_yml_dict.get('dpi', None)
details['savepdf'] = input_yml_dict.get('savepdf', False)

try:
int(details['dpi'])
except:
raise ValueError(''.join(["Loading yml error: `dpi` needs to be an integer. Current value:",
str(details['dpi'])]))
if details['dpi']: # None is valid!
try:
int(details['dpi'])
except:
raise ValueError(''.join(["Loading yml error: `dpi` needs to be an integer. Current value:",
str(details['dpi'])]))

# auto download, can differ for each job.
auto_download = input_yml_dict.get('auto_download', True)
Expand Down

0 comments on commit 9d88a5d

Please sign in to comment.