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
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_openmember variable inSOFiSTiKCDBReaderthat propagates to all helper classes.In this case it would be possible to guard a generic
loadorcalculatemethod with