Skip to content

Commit b29a14b

Browse files
committed
Run pre-commit
1 parent 9c2fb87 commit b29a14b

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

src/mdio/creators/mdio.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,13 @@
99
from mdio.api.io import _normalize_path
1010
from mdio.api.io import open_mdio
1111
from 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

1813
if 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

2920
def create_empty_like( # noqa PLR0913
3021
input_path: UPath | Path | str,

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")
5051
def 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")
7576
def 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")

tests/integration/test_create_empty.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import math
65
from typing import TYPE_CHECKING
76

87
import numpy as np
@@ -12,13 +11,6 @@
1211
from segy.schema import ScalarType
1312
from 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-
2214
if TYPE_CHECKING:
2315
from pathlib import Path
2416

@@ -30,12 +22,6 @@
3022
from tests.integration.testing_helpers import validate_variable
3123

3224
from 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
3925
from mdio.creators.mdio import create_empty_like
4026

4127

tests/integration/test_segy_roundtrip_teapot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ def set_env_vars(monkeypatch: Generator[pytest.MonkeyPatch]) -> None:
4242

4343
@pytest.fixture
4444
def teapot_segy_spec() -> SegySpec:
45+
"""Return the customized SEG-Y specification for the teapot dome dataset."""
4546
return get_teapot_segy_spec()
4647

48+
4749
def get_teapot_segy_spec() -> SegySpec:
4850
"""Return the customized SEG-Y specification for the teapot dome dataset."""
4951
teapot_fields = [

0 commit comments

Comments
 (0)