Skip to content

Commit

Permalink
debug fluidfoam/readof
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleBonamy committed Apr 16, 2024
1 parent d29cd2d commit 2be48aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fluidfoam/readof.py
Expand Up @@ -112,12 +112,14 @@ def __init__(

try:
self.is_ascii = self.header[b"format"] == b"ascii"
self.is_SP = b"scalar=32" in self.header[b"arch"]
self.noheader = False
except KeyError:
self.is_ascii = True
self.is_SP = False
self.noheader = True
try:
self.is_SP = b"scalar=32" in self.header[b"arch"]
except KeyError:
self.is_SP = False

for line in self.lines_stripped:
if line.startswith(b"dimensions"):
Expand Down

0 comments on commit 2be48aa

Please sign in to comment.