Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Kalverla <[email protected]>
  • Loading branch information
sverhoeven and Peter9192 authored Apr 5, 2022
1 parent 8a739d4 commit 8e7aba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/generate_haddock3_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def config2schema(config):
if 'maxitems' in v:
prop['maxItems'] = v['maxitems']
if 'properties' in v:
obj_schemas = config2schema( v['properties'])
obj_schemas = config2schema(v['properties'])
if v['dim'] == 1:
prop['items'] = obj_schemas['schema']
if obj_schemas['uiSchema']:
Expand Down Expand Up @@ -295,7 +295,7 @@ def config2schema(config):
}
}
else:
raise Exception('Unknown dim')
raise Exception(f'Invalid value of dim in {v=}')
elif k == 'molecules':
# TODO dont hardcode item type and ui for global.molecules, but use itemtype defined in haddock3
# Use default value to determine type of items in array/list
Expand Down

0 comments on commit 8e7aba8

Please sign in to comment.