Skip to content

Commit

Permalink
Changed requirement that suites is a list.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledm committed Aug 16, 2022
1 parent fc9c6a0 commit 3ba12e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bgcval2/analysis_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ def timeseries_compare(jobs,
annual = True
strictFileCheck = False

if isinstance(suites, str):
suites = [suites, ]
if not isinstance(suites, list):
ValueError(f"Suites need to be a list, got: {suites}")
sys.exit(1)

analysisKeys = build_list_of_suite_keys(suites, debug=True)
print(f'Using analysis keys {str(analysisKeys)}')
Expand Down

0 comments on commit 3ba12e4

Please sign in to comment.