obspy.io.segy.unpack.OnTheFlyDataUnpacker
- class OnTheFlyDataUnpacker(unpack_function, filename, filemode, seek, count, endian='>')[source]
Bases:
object
Tie-up a data sample unpack function with its parameters.
This class allows for data to be read directly from the disk as needed, preventing the need to store data in memory.
Special Methods
- OnTheFlyDataUnpacker.__delattr__(name, /)
Implement delattr(self, name).
- OnTheFlyDataUnpacker.__dir__()
Default dir() implementation.
- OnTheFlyDataUnpacker.__eq__(value, /)
Return self==value.
- OnTheFlyDataUnpacker.__format__(format_spec, /)
Default object formatter.
- OnTheFlyDataUnpacker.__ge__(value, /)
Return self>=value.
- OnTheFlyDataUnpacker.__getattribute__(name, /)
Return getattr(self, name).
- OnTheFlyDataUnpacker.__gt__(value, /)
Return self>value.
- OnTheFlyDataUnpacker.__hash__()
Return hash(self).
- OnTheFlyDataUnpacker.__init__(unpack_function, filename, filemode, seek, count, endian='>')[source]
- OnTheFlyDataUnpacker.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- OnTheFlyDataUnpacker.__le__(value, /)
Return self<=value.
- OnTheFlyDataUnpacker.__lt__(value, /)
Return self<value.
- OnTheFlyDataUnpacker.__ne__(value, /)
Return self!=value.
- OnTheFlyDataUnpacker.__new__(**kwargs)
- OnTheFlyDataUnpacker.__reduce__()
Helper for pickle.
- OnTheFlyDataUnpacker.__reduce_ex__(protocol, /)
Helper for pickle.
- OnTheFlyDataUnpacker.__repr__()
Return repr(self).
- OnTheFlyDataUnpacker.__setattr__(name, value, /)
Implement setattr(self, name, value).
- OnTheFlyDataUnpacker.__sizeof__()
Size of object in memory, in bytes.
- OnTheFlyDataUnpacker.__str__()
Return str(self).
- OnTheFlyDataUnpacker.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).