|
OpenZGY/Python API and Internals (ALPHA)
Access seismic data stored in ZGY format.
|
Public Member Functions | |
| def | __init__ (self, parent) |
| def | __enter__ (self) |
| def | __exit__ (self, type, value, traceback) |
Duplicated between impl.bulk and impl.meta. Maybe fix sometime. Technically the two differ because they set different flags. In ZgyInternalBulk and ZgyInternalMeta respectively. But that distinction isn't easy to see in Python. Start a critical section where any exception means that the owner class should be permanently flagged with _is_bad = True. Typically this is used to prevent secondary errors after a write failure that has most likely corrupted the entire file. The exception itself will not be caught. The _is_bad flag normally means that any further attempts to access this class, at least for writing, will raise a ZgyCorruptedFile exception. Regardless of what the exception was that caused the flag to be set.
1.8.17