Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #347 from simphony/sort-generated-cuba
Browse files Browse the repository at this point in the history
Problem: the generated cuba enum is unsorted, hence hard to read
  • Loading branch information
stefanoborini committed Nov 7, 2016
2 parents 1d0189d + 3efdfda commit a7f8c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def cuba_enum(cuba_input, cuds_input, output):

all_keys = set(keywords['CUBA_KEYS']) | set(metadata['CUDS_KEYS'])

for keyword in all_keys:
for keyword in sorted(list(all_keys)):
if keyword in CUBA_DATA_CONTAINER_EXCLUDE:
continue
lines.append(template.format(keyword, keyword))
Expand Down

0 comments on commit a7f8c9a

Please sign in to comment.