|
29 | 29 | from xarray import Dataset as xr_Dataset |
30 | 30 |
|
31 | 31 |
|
32 | | -from mdio.builder.template_registry import TemplateRegistry |
33 | | -from mdio.converters.segy import segy_to_mdio |
34 | 32 | from tests.integration.testing_helpers import UNITS_METER |
35 | 33 | from tests.integration.testing_helpers import UNITS_METERS_PER_SECOND |
36 | 34 | from tests.integration.testing_helpers import UNITS_MILLISECOND |
37 | 35 | from tests.integration.testing_helpers import UNITS_NONE |
38 | | -from tests.integration.testing_helpers import UNITS_SECOND |
39 | 36 | from tests.integration.testing_helpers import get_teapot_segy_spec |
40 | 37 | from tests.integration.testing_helpers import get_values |
41 | 38 | from tests.integration.testing_helpers import validate_xr_variable |
|
47 | 44 | from mdio.api.io import to_mdio |
48 | 45 | from mdio.builder.schemas.v1.stats import CenteredBinHistogram |
49 | 46 | from mdio.builder.schemas.v1.stats import SummaryStatistics |
| 47 | +from mdio.builder.template_registry import TemplateRegistry |
50 | 48 | from mdio.builder.templates.seismic_3d_poststack import Seismic3DPostStackTemplate |
51 | 49 | from mdio.converters.mdio import mdio_to_segy |
| 50 | +from mdio.converters.segy import segy_to_mdio |
52 | 51 | from mdio.core import Dimension |
53 | 52 |
|
54 | 53 |
|
@@ -168,7 +167,7 @@ def validate_teapot_dataset_variables( |
168 | 167 | header_dtype = header_dtype.newbyteorder("native") |
169 | 168 | validate_xr_variable(ds, "headers", {"inline": 345, "crossline": 188}, UNITS_NONE, header_dtype) |
170 | 169 | # The "segy_file_header" is optional |
171 | | - if "segy_file_header" in ds.variables: |
| 170 | + if "segy_file_header" in ds.variables: |
172 | 171 | validate_xr_variable(ds, "segy_file_header", dims={}, units=UNITS_NONE, data_type=np.dtype("U1")) |
173 | 172 | else: |
174 | 173 | assert "headers" not in ds.variables |
@@ -389,9 +388,8 @@ def test_create_empty_like(self, segy_input: Path, empty_mdio_dir: Path) -> None |
389 | 388 | This test has to run after the segy_roundtrip_teapot tests have run because |
390 | 389 | its uses 'teapot_mdio_tmp' created by the segy_roundtrip_teapot tests as the input. |
391 | 390 | """ |
392 | | - |
393 | | - mdio_input_tmp = empty_mdio_dir / "create_empty_like_input.mdio" |
394 | | - mdio_output_tmp = empty_mdio_dir / "create_empty_like_output.mdio" |
| 391 | + mdio_input_tmp = empty_mdio_dir / "create_empty_like_input.mdio" |
| 392 | + mdio_output_tmp = empty_mdio_dir / "create_empty_like_output.mdio" |
395 | 393 |
|
396 | 394 | mdio_unit_aware_template = TemplateRegistry().get("PostStack3DTime") |
397 | 395 | mdio_unit_aware_template.add_units({"time": UNITS_MILLISECOND}) |
|
0 commit comments