File tree Expand file tree Collapse file tree 4 files changed +4
-25
lines changed
Expand file tree Collapse file tree 4 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 99from mdio .api .io import _normalize_path
1010from mdio .api .io import open_mdio
1111from mdio .api .io import to_mdio
12- from mdio .builder .template_registry import TemplateRegistry
13- from mdio .builder .xarray_builder import to_xarray_dataset
14- from mdio .converters .segy import populate_dim_coordinates
15- from mdio .converters .type_converter import to_structured_type
16- from mdio .core .grid import Grid
1712
1813if TYPE_CHECKING :
1914 from pathlib import Path
2015
21- from segy .schema import HeaderSpec
2216 from upath import UPath
2317 from xarray import Dataset as xr_Dataset
2418
25- from mdio .builder .schemas import Dataset
26- from mdio .core .dimension import Dimension
27-
2819
2920def create_empty_like ( # noqa PLR0913
3021 input_path : UPath | Path | str ,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ def zarr_tmp(tmp_path_factory: pytest.TempPathFactory) -> Path:
4646 """Make a temp file for the output MDIO."""
4747 return tmp_path_factory .mktemp (r"mdio" )
4848
49+
4950@pytest .fixture (scope = "session" )
5051def teapot_mdio_tmp (tmp_path_factory : pytest .TempPathFactory ) -> Path :
5152 """Make a temp file for the output MDIO."""
@@ -74,8 +75,7 @@ def segy_export_tmp(tmp_path_factory: pytest.TempPathFactory) -> Path:
7475@pytest .fixture (scope = "class" )
7576def empty_mdio_with_headers (tmp_path_factory : pytest .TempPathFactory ) -> Path :
7677 """Make a temp file for empty MDIO testing."""
77- path = tmp_path_factory .mktemp (r"empty_with_headers.mdio" )
78- return path
78+ return tmp_path_factory .mktemp (r"empty_with_headers.mdio" )
7979
8080
8181# @pytest.fixture(scope="session")
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- import math
65from typing import TYPE_CHECKING
76
87import numpy as np
1211from segy .schema import ScalarType
1312from segy .standards import get_segy_standard
1413
15- from mdio .builder .schemas .v1 .units import LengthUnitEnum
16- from mdio .builder .schemas .v1 .units import LengthUnitModel
17- from mdio .builder .schemas .v1 .units import SpeedUnitEnum
18- from mdio .builder .schemas .v1 .units import SpeedUnitModel
19- from mdio .builder .schemas .v1 .units import TimeUnitEnum
20- from mdio .builder .schemas .v1 .units import TimeUnitModel
21-
2214if TYPE_CHECKING :
2315 from pathlib import Path
2416
3022from tests .integration .testing_helpers import validate_variable
3123
3224from mdio import __version__
33- from mdio .api .io import open_mdio
34- from mdio .api .io import to_mdio
35- from mdio .builder .schemas .v1 .stats import CenteredBinHistogram
36- from mdio .builder .schemas .v1 .stats import SummaryStatistics
37- from mdio .converters .mdio import mdio_to_segy
38- from mdio .core import Dimension
3925from mdio .creators .mdio import create_empty_like
4026
4127
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ def set_env_vars(monkeypatch: Generator[pytest.MonkeyPatch]) -> None:
4242
4343@pytest .fixture
4444def teapot_segy_spec () -> SegySpec :
45+ """Return the customized SEG-Y specification for the teapot dome dataset."""
4546 return get_teapot_segy_spec ()
4647
48+
4749def get_teapot_segy_spec () -> SegySpec :
4850 """Return the customized SEG-Y specification for the teapot dome dataset."""
4951 teapot_fields = [
You can’t perform that action at this time.
0 commit comments