We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29cd2d commit 2be48aaCopy full SHA for 2be48aa
fluidfoam/readof.py
@@ -112,12 +112,14 @@ def __init__(
112
113
try:
114
self.is_ascii = self.header[b"format"] == b"ascii"
115
- self.is_SP = b"scalar=32" in self.header[b"arch"]
116
self.noheader = False
117
except KeyError:
118
self.is_ascii = True
119
- self.is_SP = False
120
self.noheader = True
+ try:
+ self.is_SP = b"scalar=32" in self.header[b"arch"]
121
+ except KeyError:
122
+ self.is_SP = False
123
124
for line in self.lines_stripped:
125
if line.startswith(b"dimensions"):
0 commit comments