Skip to content

[CDB-READER] (possible) bug - calculating derived quantities when the reader is closed #64

Description

@StudioWEngineers

When, as example calculating the beam strain energy, the reader could be already closed. This leads to locks on the underlying cdb file, which are annoying to unlock manually.

Try to implement a is_open member variable in SOFiSTiKCDBReader that propagates to all helper classes.
In this case it would be possible to guard a generic load or calculate method with

if not self._is_open:

    raise RuntimeError()  # or whatever logic

Metadata

Metadata

Labels

BUGSomething isn't workingCDB READERRelated to the cdb_reader subpackage

Projects

Status
Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions