mirror of
https://github.com/wassname/segpy.git
synced 2026-06-27 17:17:13 +08:00
Makes SegYReader compute the maximum number of samples per trace before serializing (to the cache).
This commit is contained in:
@@ -312,6 +312,8 @@ class SegYReader(object):
|
||||
file_pos = self._fh.tell()
|
||||
file_mode = self._fh.mode
|
||||
|
||||
_ = self.max_num_trace_samples()
|
||||
|
||||
state = self.__dict__.copy()
|
||||
state['__version__'] = __version__
|
||||
state['_file_name'] = filename
|
||||
|
||||
Reference in New Issue
Block a user