From bf8a85f1c5fa799b07cbd5d9987379b6cd37c8c8 Mon Sep 17 00:00:00 2001 From: Aaron Girard Date: Thu, 9 Jan 2025 16:11:10 -0700 Subject: [PATCH 1/3] added ability to read SEGY file version 0.0 --- dascore/io/segy/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dascore/io/segy/core.py b/dascore/io/segy/core.py index a44ceab8..8b34cae8 100644 --- a/dascore/io/segy/core.py +++ b/dascore/io/segy/core.py @@ -87,6 +87,11 @@ def write(self, spool: dc.Patch | dc.BaseSpool, resource, **kwargs): _write_segy(spool, resource, self.version, segyio) +class SegyV0_0(SegyV1_0): # noqa + """An IO class supporting version 0.0 of the SEGY format. Or if the version is not set. """ + + version = "0.0" + class SegyV2_0(SegyV1_0): # noqa """An IO class supporting version 2.0 of the SEGY format.""" From e0c7b4ead5ef8baafbfea3c56ffdc2a7f89d802f Mon Sep 17 00:00:00 2001 From: Aaron Girard <19921391+aaronjgirard@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:18:33 -0700 Subject: [PATCH 2/3] Update core.py --- dascore/io/segy/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dascore/io/segy/core.py b/dascore/io/segy/core.py index 8b34cae8..97691fbc 100644 --- a/dascore/io/segy/core.py +++ b/dascore/io/segy/core.py @@ -88,7 +88,11 @@ def write(self, spool: dc.Patch | dc.BaseSpool, resource, **kwargs): class SegyV0_0(SegyV1_0): # noqa - """An IO class supporting version 0.0 of the SEGY format. Or if the version is not set. """ + """ + An IO class supporting version 0.0 of the SEGY format. + + Or if the version is not set. + """ version = "0.0" From b171e62b4b510e62a33fcdc601b0e9d6cac4650f Mon Sep 17 00:00:00 2001 From: Aaron Girard Date: Thu, 9 Jan 2025 16:24:45 -0700 Subject: [PATCH 3/3] added ability to read SEGY file version 0.0 --- dascore/io/segy/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dascore/io/segy/core.py b/dascore/io/segy/core.py index 97691fbc..80d4cd2a 100644 --- a/dascore/io/segy/core.py +++ b/dascore/io/segy/core.py @@ -89,13 +89,14 @@ def write(self, spool: dc.Patch | dc.BaseSpool, resource, **kwargs): class SegyV0_0(SegyV1_0): # noqa """ - An IO class supporting version 0.0 of the SEGY format. - - Or if the version is not set. + An IO class supporting version 0.0 of the SEGY format. + + Or if the version is not set. """ version = "0.0" + class SegyV2_0(SegyV1_0): # noqa """An IO class supporting version 2.0 of the SEGY format."""