Skip to content

Warning during `fdsreader.Simulation(...) #109

@chraibi

Description

@chraibi

I'm seeing a warning during fdsreader.Simulation(...) initialization when parsing an FDS case that otherwise loads well enough for slice-based post-processing.

Image

Observed stack trace:

File ".../fdsreader/simulation.py", line 158, in __init__
  self.parse_smv_file()
File ".../fdsreader/simulation.py", line 240, in parse_smv_file
  self._meshes.append(self._load_mesh(smv_file, keyword))
File ".../fdsreader/simulation.py", line 330, in _load_mesh
  self._load_vents(smv_file, mesh)
File ".../fdsreader/utils/misc.py", line 18, in wrapped
  logging.warning(e)

Environment:

  • fdsreader: 1.11.7
  • Python: 3.11
  • platform: macOS

Notes:

  • This happens during Simulation(...) construction.
  • It appears to come from vent parsing specifically.
  • In my use case I only need slice quantities, so the warning is non-fatal, but it is emitted every time the case is parsed.
  • The problematic token seems to be !, which suggests the parser may be encountering a vent line/token it does not expect.

Expected behavior:

  • Either vents should parse successfully, or
  • the parser should skip malformed/unsupported vent entries more quietly / more robustly, especially when the rest of the case is usable.

haspel.fds.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions