Skip to content

Commit

Permalink
ensure 9 fields always eturned in fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
Spectre5 committed May 8, 2021
1 parent 59f1fbb commit 5b5f3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meshio/nastran/_nastran.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _chunk_line(line):
chunks = line.split(",")
else: # fixed format
CHUNK_SIZE = 8
chunks = [line[i : CHUNK_SIZE + i] for i in range(0, len(line), CHUNK_SIZE)]
chunks = [line[i : CHUNK_SIZE + i] for i in range(0, 72, CHUNK_SIZE)]
# everything after the 9th chunk is ignored
return chunks[:9]

Expand Down

0 comments on commit 5b5f3a7

Please sign in to comment.