Skip to content

Commit

Permalink
corrected int key dict check
Browse files Browse the repository at this point in the history
  • Loading branch information
lmseidler committed Jan 6, 2025
1 parent 76df8d9 commit 7f9e9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mindlessgen/prog/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def element_composition(
tmp[element_number - 1] = composition[key]
# Check int keys
else:
if key in PSE_SYMBOLS:
if key + 1 in PSE_SYMBOLS:
tmp[key] = composition[key]
else:
raise KeyError(
Expand Down

0 comments on commit 7f9e9ed

Please sign in to comment.