Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AHartmaier committed Aug 13, 2024
1 parent ecb79ad commit 73b0787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kanapy/input_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def write_grain_sets():
# Create element sets for grains
for k, v in grain_dict.items():
f.write('*ELSET, ELSET=GRAIN{0}_SET\n'.format(k))
for enum, el in enumerate(v[:-2], start=1):
for enum, el in enumerate(v[:-1], start=1):
if enum % 16 != 0:
f.write('%d, ' % el)
else:
Expand Down

0 comments on commit 73b0787

Please sign in to comment.