segyio 1.9.11__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 1.9.13__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of segyio might be problematic. Click here for more details.

segyio/__init__.py CHANGED
@@ -76,8 +76,8 @@ class Enum(object):
76
76
  @classmethod
77
77
  def enums(cls):
78
78
  result = []
79
- for v in cls.__dict__.values():
80
- if isinstance(v, int):
79
+ for k, v in cls.__dict__.items():
80
+ if isinstance(v, int) and not str.startswith(k, "_"):
81
81
  result.append(cls(v))
82
82
 
83
83
  return sorted(result, key=int)
segyio/line.py CHANGED
@@ -196,13 +196,8 @@ class Line(Mapping):
196
196
  except TypeError: pass
197
197
 
198
198
  # prioritise the code path that's potentially in loops externally
199
- try:
199
+ if not isinstance(index, slice) and not isinstance(offset, slice):
200
200
  head = self.heads[index] + self.offsets[offset]
201
- except TypeError:
202
- # index is either unhashable (because it's a slice), or offset is a
203
- # slice.
204
- pass
205
- else:
206
201
  return self.filehandle.getline(head,
207
202
  self.length,
208
203
  self.stride,
@@ -287,9 +282,8 @@ class Line(Mapping):
287
282
  try: index, offset = index
288
283
  except TypeError: pass
289
284
 
290
- try: head = self.heads[index] + self.offsets[offset]
291
- except TypeError: pass
292
- else:
285
+ if not isinstance(index, slice) and not isinstance(offset, slice):
286
+ head = self.heads[index] + self.offsets[offset]
293
287
  return self.filehandle.putline(head,
294
288
  self.length,
295
289
  self.stride,
@@ -422,14 +416,8 @@ class HeaderLine(Line):
422
416
  try: index, offset = index
423
417
  except TypeError: pass
424
418
 
425
- try:
419
+ if not isinstance(index, slice) and not isinstance(offset, slice):
426
420
  start = self.heads[index] + self.offsets[offset]
427
- except TypeError:
428
- # index is either unhashable (because it's a slice), or offset is a
429
- # slice.
430
- pass
431
-
432
- else:
433
421
  step = self.stride * len(self.offsets)
434
422
  stop = start + step * self.length
435
423
  return self.header[start:stop:step]
@@ -489,9 +477,8 @@ class HeaderLine(Line):
489
477
  try: index, offset = index
490
478
  except TypeError: pass
491
479
 
492
- try: start = self.heads[index] + self.offsets[offset]
493
- except TypeError: pass
494
- else:
480
+ if not isinstance(index, slice) and not isinstance(offset, slice):
481
+ start = self.heads[index] + self.offsets[offset]
495
482
  step = self.stride * len(self.offsets)
496
483
  stop = start + step * self.length
497
484
  self.header[start:stop:step] = val
segyio/open.py CHANGED
@@ -166,8 +166,8 @@ def open(filename, mode="r", iline = 189,
166
166
  f = segyio.SegyFile(fd,
167
167
  filename = str(filename),
168
168
  mode = mode,
169
- iline = iline,
170
- xline = xline,
169
+ iline = int(iline),
170
+ xline = int(xline),
171
171
  endian = endian,
172
172
  )
173
173
 
@@ -189,4 +189,4 @@ def open(filename, mode="r", iline = 189,
189
189
  if ignore_geometry:
190
190
  return f
191
191
 
192
- return infer_geometry(f, metrics, iline, xline, strict)
192
+ return infer_geometry(f, metrics, int(iline), int(xline), strict)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: segyio
3
- Version: 1.9.11
3
+ Version: 1.9.13
4
4
  Summary: Simple & fast IO for SEG-Y files
5
5
  Home-page: https://github.com/equinor/segyio
6
6
  Author: Equinor ASA
@@ -14,17 +14,25 @@ Classifier: Intended Audience :: Science/Research
14
14
  Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
15
15
  Classifier: Natural Language :: English
16
16
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.6
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
17
  Classifier: Programming Language :: Python :: 3.9
21
18
  Classifier: Programming Language :: Python :: 3.10
22
19
  Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
23
22
  Classifier: Topic :: Scientific/Engineering
24
23
  Classifier: Topic :: Scientific/Engineering :: Physics
25
24
  Classifier: Topic :: Software Development :: Libraries
26
25
  Classifier: Topic :: Utilities
27
- Requires-Dist: numpy (>=1.10)
26
+ Requires-Dist: numpy>=1.10
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: home-page
32
+ Dynamic: license
33
+ Dynamic: platform
34
+ Dynamic: requires-dist
35
+ Dynamic: summary
28
36
 
29
37
 
30
38
  =======
@@ -1,23 +1,23 @@
1
+ segyio-1.9.13.dist-info/WHEEL,sha256=6rwu4iGxLTAhAfH3CTsNwA3o0ZeVA__mSaK3PEDswnY,148
2
+ segyio-1.9.13.dist-info/top_level.txt,sha256=9JZUlMVxkQCR1s0sEBvt1G8Om5tWAmrmQojEIcCUTjk,7
3
+ segyio-1.9.13.dist-info/METADATA,sha256=g98sMSTRB27c4j7ITUV5UbCd8-E2fkZX2Q7ZjsRvxXo,2844
4
+ segyio-1.9.13.dist-info/RECORD,,
5
+ segyio/__init__.py,sha256=6xoe6OPuua6l0EzLpAZnKg_49HDbkTBEK53s1ESb_a8,3542
6
+ segyio/field.py,sha256=4lhhiOCYAx3KSnARsXq2JGVaG3p6dugHX8cSdB51GWw,19230
1
7
  segyio/segy.py,sha256=3lg_9C5nofCi001rLGHeDN3D-lutc2S0Zk29VXP93ac,27846
8
+ segyio/segysampleformat.py,sha256=GJgmWlCB_g-ofRVSBrRb0p2Hq80IspPIhvhtObdVBuA,510
9
+ segyio/line.py,sha256=gTvopmyeSsPYbWN9HfWH6XXN_jz-L5_dR3xbSJ0dT-U,16852
10
+ segyio/utils.py,sha256=iy9k8Yx5q1skTGFYMLiWLyHRChCtFjqEfwV_5UtKH40,1063
11
+ segyio/depth.py,sha256=aU8V4Wtc4qDTWY3H0nAVg5pZu1AEDqjfEH6PJGkED3U,5463
2
12
  segyio/_segyio.cpython-311-aarch64-linux-gnu.so,sha256=AtSqyeN4SxBA2_8sE_L6iRWBNWRgUZUmWabxHHz0BLg,84832
3
- segyio/tracefield.py,sha256=k2R9GVXQS9rIzEOBPIqYK90i9XVy6LE3IunmGhEjOR0,7196
4
- segyio/tracesortingformat.py,sha256=FwNLLlT-5_2t6yNsrr-nke2hB7oSGOySVmQxKVkIVHc,125
5
- segyio/create.py,sha256=xvXW5aeA_mFGqvYiSvGiE1zEoFdzxbc4vtyKy_QxlEc,8031
6
- segyio/__init__.py,sha256=Xtl6uhVjhoo9cFwYKH_wNhTRu5nic5FRedM-hF2BmYk,3509
7
13
  segyio/gather.py,sha256=ry3EBxqoNY2wKIa_-oj6qBeUg7qPMLN3lsQ0QvHuNJ0,13099
14
+ segyio/create.py,sha256=xvXW5aeA_mFGqvYiSvGiE1zEoFdzxbc4vtyKy_QxlEc,8031
15
+ segyio/trace.py,sha256=Nm_khA3n1hzZGEVXrHOy97m7sgy2-WbsnhuMKdH5jjI,29477
16
+ segyio/tracesortingformat.py,sha256=FwNLLlT-5_2t6yNsrr-nke2hB7oSGOySVmQxKVkIVHc,125
17
+ segyio/open.py,sha256=x_xEqib-eNbxkFgK2DwUR7tNO1jeahAXwyFcsBTJ1_M,5770
8
18
  segyio/binfield.py,sha256=LKx8438Z6tn4cDhFDU7ieEhveohIt6xQcoMk3wcz0cI,2473
9
- segyio/utils.py,sha256=iy9k8Yx5q1skTGFYMLiWLyHRChCtFjqEfwV_5UtKH40,1063
10
- segyio/field.py,sha256=4lhhiOCYAx3KSnARsXq2JGVaG3p6dugHX8cSdB51GWw,19230
19
+ segyio/tracefield.py,sha256=k2R9GVXQS9rIzEOBPIqYK90i9XVy6LE3IunmGhEjOR0,7196
11
20
  segyio/tools.py,sha256=fQggdh6w4xo_15YlbzbG6-Xr8a12oK2IH9wthWrYl8U,21149
12
- segyio/depth.py,sha256=aU8V4Wtc4qDTWY3H0nAVg5pZu1AEDqjfEH6PJGkED3U,5463
13
- segyio/segysampleformat.py,sha256=GJgmWlCB_g-ofRVSBrRb0p2Hq80IspPIhvhtObdVBuA,510
14
- segyio/open.py,sha256=Qwqgk4fkg6fFPyAXVhKkM8Uj_Hb468opo8XtoUOIKF4,5750
15
- segyio/line.py,sha256=3UtXoiurlxKAmckA7lyIixkzI5hjC1QKiOLsOCXKGRg,16987
16
- segyio/trace.py,sha256=Nm_khA3n1hzZGEVXrHOy97m7sgy2-WbsnhuMKdH5jjI,29477
17
21
  segyio/su/__init__.py,sha256=ACaAw6RW7BUh2hDdMr7ScZ475lkR9-Ns4HlHrfRysKA,44
18
- segyio/su/file.py,sha256=iTWDMo0RXteqY44ndaB3ooc-7U9ZSA_h-NtRCuzkr8A,2947
19
22
  segyio/su/words.py,sha256=ZN5GIatRH_FdYVsJvg7qtnbAUUHV1OE7YWR1Dj7bblA,4812
20
- segyio-1.9.11.dist-info/METADATA,sha256=pYrrFHa0Rl6hjptoV4u9hINgI3b6AVNIkNGJbPhP0lI,2722
21
- segyio-1.9.11.dist-info/WHEEL,sha256=RHyGXli_bOqYZxtGVeOG14D4iL35pkokM8suGlLBCoA,148
22
- segyio-1.9.11.dist-info/top_level.txt,sha256=9JZUlMVxkQCR1s0sEBvt1G8Om5tWAmrmQojEIcCUTjk,7
23
- segyio-1.9.11.dist-info/RECORD,,
23
+ segyio/su/file.py,sha256=iTWDMo0RXteqY44ndaB3ooc-7U9ZSA_h-NtRCuzkr8A,2947
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: skbuild 0.16.7
2
+ Generator: skbuild 0.18.1
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-manylinux_2_17_aarch64
5
5
  Tag: cp311-cp311-manylinux2014_aarch64