diff --git a/src/mdio/converters/mdio.py b/src/mdio/converters/mdio.py index 61eead8d..ef77833e 100644 --- a/src/mdio/converters/mdio.py +++ b/src/mdio/converters/mdio.py @@ -9,12 +9,12 @@ from tqdm.dask import TqdmCallback from mdio import MDIOReader -from mdio.seismic.blocked_io import to_segy -from mdio.seismic.byte_utils import ByteOrder -from mdio.seismic.byte_utils import Dtype -from mdio.seismic.creation import concat_files -from mdio.seismic.creation import mdio_spec_to_segy -from mdio.seismic.utilities import segy_export_rechunker +from mdio.segy.blocked_io import to_segy +from mdio.segy.byte_utils import ByteOrder +from mdio.segy.byte_utils import Dtype +from mdio.segy.creation import concat_files +from mdio.segy.creation import mdio_spec_to_segy +from mdio.segy.utilities import segy_export_rechunker try: diff --git a/src/mdio/converters/segy.py b/src/mdio/converters/segy.py index 0acb0c88..db901da3 100644 --- a/src/mdio/converters/segy.py +++ b/src/mdio/converters/segy.py @@ -21,12 +21,12 @@ from mdio.converters.exceptions import GridTraceSparsityError from mdio.core import Grid from mdio.core.utils_write import write_attribute -from mdio.seismic import blocked_io -from mdio.seismic.byte_utils import Dtype -from mdio.seismic.helpers_segy import create_zarr_hierarchy -from mdio.seismic.parsers import parse_binary_header -from mdio.seismic.parsers import parse_text_header -from mdio.seismic.utilities import get_grid_plan +from mdio.segy import blocked_io +from mdio.segy.byte_utils import Dtype +from mdio.segy.helpers_segy import create_zarr_hierarchy +from mdio.segy.parsers import parse_binary_header +from mdio.segy.parsers import parse_text_header +from mdio.segy.utilities import get_grid_plan if TYPE_CHECKING: diff --git a/src/mdio/seismic/__init__.py b/src/mdio/segy/__init__.py similarity index 100% rename from src/mdio/seismic/__init__.py rename to src/mdio/segy/__init__.py diff --git a/src/mdio/seismic/_standards_common.py b/src/mdio/segy/_standards_common.py similarity index 100% rename from src/mdio/seismic/_standards_common.py rename to src/mdio/segy/_standards_common.py diff --git a/src/mdio/seismic/_standards_rev0.py b/src/mdio/segy/_standards_rev0.py similarity index 97% rename from src/mdio/seismic/_standards_rev0.py rename to src/mdio/segy/_standards_rev0.py index 69726223..16f6a766 100644 --- a/src/mdio/seismic/_standards_rev0.py +++ b/src/mdio/segy/_standards_rev0.py @@ -1,10 +1,10 @@ """SEG-Y Rev 0 standard and its definitions.""" -from mdio.seismic.byte_utils import ByteOrder -from mdio.seismic.byte_utils import Dtype -from mdio.seismic.byte_utils import OrderedType -from mdio.seismic.headers import Header -from mdio.seismic.headers import HeaderGroup +from mdio.segy.byte_utils import ByteOrder +from mdio.segy.byte_utils import Dtype +from mdio.segy.byte_utils import OrderedType +from mdio.segy.headers import Header +from mdio.segy.headers import HeaderGroup # ruff: noqa: E501 diff --git a/src/mdio/seismic/_workers.py b/src/mdio/segy/_workers.py similarity index 98% rename from src/mdio/seismic/_workers.py rename to src/mdio/segy/_workers.py index fa2c824d..c0849425 100644 --- a/src/mdio/seismic/_workers.py +++ b/src/mdio/segy/_workers.py @@ -10,9 +10,9 @@ import segyio from mdio.constants import UINT32_MAX -from mdio.seismic.byte_utils import ByteOrder -from mdio.seismic.byte_utils import Dtype -from mdio.seismic.ibm_float import ibm2ieee +from mdio.segy.byte_utils import ByteOrder +from mdio.segy.byte_utils import Dtype +from mdio.segy.ibm_float import ibm2ieee if TYPE_CHECKING: diff --git a/src/mdio/seismic/blocked_io.py b/src/mdio/segy/blocked_io.py similarity index 97% rename from src/mdio/seismic/blocked_io.py rename to src/mdio/segy/blocked_io.py index 0ed551bf..bf11b189 100644 --- a/src/mdio/seismic/blocked_io.py +++ b/src/mdio/segy/blocked_io.py @@ -19,9 +19,9 @@ from zarr import Group from mdio.core.indexing import ChunkIterator -from mdio.seismic._workers import trace_worker -from mdio.seismic.creation import concat_files -from mdio.seismic.creation import write_to_segy_stack +from mdio.segy._workers import trace_worker +from mdio.segy.creation import concat_files +from mdio.segy.creation import write_to_segy_stack if TYPE_CHECKING: @@ -30,8 +30,8 @@ from numpy.typing import NDArray from mdio.core import Grid - from mdio.seismic.byte_utils import ByteOrder - from mdio.seismic.byte_utils import Dtype + from mdio.segy.byte_utils import ByteOrder + from mdio.segy.byte_utils import Dtype try: diff --git a/src/mdio/seismic/byte_utils.py b/src/mdio/segy/byte_utils.py similarity index 100% rename from src/mdio/seismic/byte_utils.py rename to src/mdio/segy/byte_utils.py diff --git a/src/mdio/seismic/creation.py b/src/mdio/segy/creation.py similarity index 97% rename from src/mdio/seismic/creation.py rename to src/mdio/segy/creation.py index 64c5dda6..e2a1e67f 100644 --- a/src/mdio/seismic/creation.py +++ b/src/mdio/segy/creation.py @@ -15,11 +15,11 @@ from tqdm.auto import tqdm from mdio.api.accessor import MDIOReader -from mdio.seismic._standards_common import SegyFloatFormat -from mdio.seismic.byte_utils import ByteOrder -from mdio.seismic.byte_utils import Dtype -from mdio.seismic.byte_utils import get_byteorder -from mdio.seismic.ibm_float import ieee2ibm +from mdio.segy._standards_common import SegyFloatFormat +from mdio.segy.byte_utils import ByteOrder +from mdio.segy.byte_utils import Dtype +from mdio.segy.byte_utils import get_byteorder +from mdio.segy.ibm_float import ieee2ibm if TYPE_CHECKING: diff --git a/src/mdio/seismic/ebcdic.py b/src/mdio/segy/ebcdic.py similarity index 100% rename from src/mdio/seismic/ebcdic.py rename to src/mdio/segy/ebcdic.py diff --git a/src/mdio/seismic/exceptions.py b/src/mdio/segy/exceptions.py similarity index 100% rename from src/mdio/seismic/exceptions.py rename to src/mdio/segy/exceptions.py diff --git a/src/mdio/seismic/geometry.py b/src/mdio/segy/geometry.py similarity index 98% rename from src/mdio/seismic/geometry.py rename to src/mdio/segy/geometry.py index 6d4e6133..e4a427af 100644 --- a/src/mdio/seismic/geometry.py +++ b/src/mdio/segy/geometry.py @@ -13,10 +13,10 @@ import numpy as np import numpy.typing as npt -from mdio.seismic.exceptions import GridOverrideIncompatibleError -from mdio.seismic.exceptions import GridOverrideKeysError -from mdio.seismic.exceptions import GridOverrideMissingParameterError -from mdio.seismic.exceptions import GridOverrideUnknownError +from mdio.segy.exceptions import GridOverrideIncompatibleError +from mdio.segy.exceptions import GridOverrideKeysError +from mdio.segy.exceptions import GridOverrideMissingParameterError +from mdio.segy.exceptions import GridOverrideUnknownError if TYPE_CHECKING: diff --git a/src/mdio/seismic/headers.py b/src/mdio/segy/headers.py similarity index 98% rename from src/mdio/seismic/headers.py rename to src/mdio/segy/headers.py index 4215b617..21bfdc91 100644 --- a/src/mdio/seismic/headers.py +++ b/src/mdio/segy/headers.py @@ -6,7 +6,7 @@ import numpy as np -from mdio.seismic.byte_utils import OrderedType +from mdio.segy.byte_utils import OrderedType @dataclass diff --git a/src/mdio/seismic/headers_text.py b/src/mdio/segy/headers_text.py similarity index 97% rename from src/mdio/seismic/headers_text.py rename to src/mdio/segy/headers_text.py index 4d87cd02..1ef88541 100644 --- a/src/mdio/seismic/headers_text.py +++ b/src/mdio/segy/headers_text.py @@ -6,8 +6,8 @@ import numpy as np -from mdio.seismic.ebcdic import ASCII_TO_EBCDIC -from mdio.seismic.ebcdic import EBCDIC_TO_ASCII +from mdio.segy.ebcdic import ASCII_TO_EBCDIC +from mdio.segy.ebcdic import EBCDIC_TO_ASCII if TYPE_CHECKING: diff --git a/src/mdio/seismic/helpers_segy.py b/src/mdio/segy/helpers_segy.py similarity index 100% rename from src/mdio/seismic/helpers_segy.py rename to src/mdio/segy/helpers_segy.py diff --git a/src/mdio/seismic/ibm_float.py b/src/mdio/segy/ibm_float.py similarity index 100% rename from src/mdio/seismic/ibm_float.py rename to src/mdio/segy/ibm_float.py diff --git a/src/mdio/seismic/parsers.py b/src/mdio/segy/parsers.py similarity index 98% rename from src/mdio/seismic/parsers.py rename to src/mdio/segy/parsers.py index 2551f9ae..6dc8c7a8 100644 --- a/src/mdio/seismic/parsers.py +++ b/src/mdio/segy/parsers.py @@ -14,7 +14,7 @@ from tqdm.auto import tqdm from mdio.core.dimension import Dimension -from mdio.seismic._workers import header_scan_worker +from mdio.segy._workers import header_scan_worker if TYPE_CHECKING: @@ -22,7 +22,7 @@ from numpy.typing import NDArray - from mdio.seismic.byte_utils import Dtype + from mdio.segy.byte_utils import Dtype NUM_CORES = cpu_count(logical=False) diff --git a/src/mdio/seismic/utilities.py b/src/mdio/segy/utilities.py similarity index 96% rename from src/mdio/seismic/utilities.py rename to src/mdio/segy/utilities.py index 4abbb231..9fe04a23 100644 --- a/src/mdio/seismic/utilities.py +++ b/src/mdio/segy/utilities.py @@ -8,9 +8,9 @@ from dask.array.core import auto_chunks from mdio.core.dimension import Dimension -from mdio.seismic.geometry import GridOverrider -from mdio.seismic.parsers import parse_sample_axis -from mdio.seismic.parsers import parse_trace_headers +from mdio.segy.geometry import GridOverrider +from mdio.segy.parsers import parse_sample_axis +from mdio.segy.parsers import parse_trace_headers if TYPE_CHECKING: @@ -19,7 +19,7 @@ from numpy.typing import DTypeLike from numpy.typing import NDArray - from mdio.seismic.byte_utils import Dtype + from mdio.segy.byte_utils import Dtype def get_grid_plan( # noqa: PLR0913 diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 4dba8abe..d4669cb2 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -8,7 +8,7 @@ import pytest import segyio -from mdio.seismic.geometry import StreamerShotGeometryType +from mdio.segy.geometry import StreamerShotGeometryType if TYPE_CHECKING: diff --git a/tests/integration/test_segy_import_export.py b/tests/integration/test_segy_import_export.py index faa24dc8..8553a714 100644 --- a/tests/integration/test_segy_import_export.py +++ b/tests/integration/test_segy_import_export.py @@ -15,7 +15,7 @@ from mdio import mdio_to_segy from mdio.converters import segy_to_mdio from mdio.core import Dimension -from mdio.seismic.geometry import StreamerShotGeometryType +from mdio.segy.geometry import StreamerShotGeometryType if TYPE_CHECKING: diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index d060b171..725fbc26 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -16,7 +16,7 @@ from mdio.core import Dimension from mdio.core import Grid from mdio.core.utils_write import write_attribute -from mdio.seismic.helpers_segy import create_zarr_hierarchy +from mdio.segy.helpers_segy import create_zarr_hierarchy if TYPE_CHECKING: diff --git a/tests/unit/test_accessor.py b/tests/unit/test_accessor.py index 8ad1b978..d2f6d28a 100644 --- a/tests/unit/test_accessor.py +++ b/tests/unit/test_accessor.py @@ -14,7 +14,7 @@ from mdio.core.exceptions import MDIOAlreadyExistsError from mdio.core.exceptions import MDIONotFoundError from mdio.exceptions import ShapeError -from mdio.seismic.helpers_segy import create_zarr_hierarchy +from mdio.segy.helpers_segy import create_zarr_hierarchy if TYPE_CHECKING: diff --git a/tests/unit/test_ibm_ieee.py b/tests/unit/test_ibm_ieee.py index 83cc0e84..9850795b 100644 --- a/tests/unit/test_ibm_ieee.py +++ b/tests/unit/test_ibm_ieee.py @@ -8,9 +8,9 @@ import numpy as np import pytest -from mdio.seismic.ibm_float import byteswap_uint32 -from mdio.seismic.ibm_float import ibm2ieee -from mdio.seismic.ibm_float import ieee2ibm +from mdio.segy.ibm_float import byteswap_uint32 +from mdio.segy.ibm_float import ibm2ieee +from mdio.segy.ibm_float import ieee2ibm @pytest.mark.parametrize( diff --git a/tests/unit/test_segy_grid_overrides.py b/tests/unit/test_segy_grid_overrides.py index 0357dd39..959b39ab 100644 --- a/tests/unit/test_segy_grid_overrides.py +++ b/tests/unit/test_segy_grid_overrides.py @@ -13,10 +13,10 @@ from numpy.testing import assert_array_equal from mdio.core import Dimension -from mdio.seismic.exceptions import GridOverrideIncompatibleError -from mdio.seismic.exceptions import GridOverrideMissingParameterError -from mdio.seismic.exceptions import GridOverrideUnknownError -from mdio.seismic.geometry import GridOverrider +from mdio.segy.exceptions import GridOverrideIncompatibleError +from mdio.segy.exceptions import GridOverrideMissingParameterError +from mdio.segy.exceptions import GridOverrideUnknownError +from mdio.segy.geometry import GridOverrider SHOTS = arange(100, 104, dtype="int32") diff --git a/tests/unit/test_text_header.py b/tests/unit/test_text_header.py index 1013813d..9ff84de2 100644 --- a/tests/unit/test_text_header.py +++ b/tests/unit/test_text_header.py @@ -7,10 +7,10 @@ import pytest -from mdio.seismic.headers_text import ascii_to_ebcdic -from mdio.seismic.headers_text import ebcdic_to_ascii -from mdio.seismic.headers_text import unwrap_string -from mdio.seismic.headers_text import wrap_strings +from mdio.segy.headers_text import ascii_to_ebcdic +from mdio.segy.headers_text import ebcdic_to_ascii +from mdio.segy.headers_text import unwrap_string +from mdio.segy.headers_text import wrap_strings @pytest.mark.parametrize(