Skip to content

Commit f5c799e

Browse files
authored
Rename Pre-Stack templates to be more clear (TGSAI#734)
* remove pre-stack from template names * rename shot gather for clearer template names * remove time from shot gathers since its obvious. * `shot_streamer` to `streamer_shot` --------- Co-authored-by: Altay Sansal <[email protected]>
1 parent af67819 commit f5c799e

14 files changed

+105
-123
lines changed

src/mdio/builder/template_registry.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
from typing import TYPE_CHECKING
2121

2222
from mdio.builder.formatting_html import template_registry_repr_html
23+
from mdio.builder.templates.seismic_2d_cdp import Seismic2DCdpGathersTemplate
2324
from mdio.builder.templates.seismic_2d_poststack import Seismic2DPostStackTemplate
24-
from mdio.builder.templates.seismic_2d_prestack_cdp import Seismic2DPreStackCDPTemplate
25-
from mdio.builder.templates.seismic_2d_prestack_shot import Seismic2DPreStackShotTemplate
25+
from mdio.builder.templates.seismic_2d_streamer_shot import Seismic2DStreamerShotGathersTemplate
26+
from mdio.builder.templates.seismic_3d_cdp import Seismic3DCdpGathersTemplate
27+
from mdio.builder.templates.seismic_3d_coca import Seismic3DCocaGathersTemplate
2628
from mdio.builder.templates.seismic_3d_poststack import Seismic3DPostStackTemplate
27-
from mdio.builder.templates.seismic_3d_prestack_cdp import Seismic3DPreStackCDPTemplate
28-
from mdio.builder.templates.seismic_3d_prestack_coca import Seismic3DPreStackCocaTemplate
29-
from mdio.builder.templates.seismic_3d_prestack_shot import Seismic3DPreStackShotTemplate
29+
from mdio.builder.templates.seismic_3d_streamer_shot import Seismic3DStreamerShotGathersTemplate
3030

3131
if TYPE_CHECKING:
3232
from mdio.builder.templates.base import AbstractDatasetTemplate
@@ -126,15 +126,15 @@ def _register_default_templates(self) -> None:
126126
# CDP/CMP Ordered Data
127127
for data_domain in ("time", "depth"):
128128
for gather_domain in ("offset", "angle"):
129-
self.register(Seismic3DPreStackCDPTemplate(data_domain, gather_domain))
130-
self.register(Seismic2DPreStackCDPTemplate(data_domain, gather_domain))
129+
self.register(Seismic3DCdpGathersTemplate(data_domain, gather_domain))
130+
self.register(Seismic2DCdpGathersTemplate(data_domain, gather_domain))
131131

132-
self.register(Seismic3DPreStackCocaTemplate("time"))
133-
self.register(Seismic3DPreStackCocaTemplate("depth"))
132+
self.register(Seismic3DCocaGathersTemplate("time"))
133+
self.register(Seismic3DCocaGathersTemplate("depth"))
134134

135135
# Field (shot) data
136-
self.register(Seismic2DPreStackShotTemplate("time"))
137-
self.register(Seismic3DPreStackShotTemplate("time"))
136+
self.register(Seismic2DStreamerShotGathersTemplate())
137+
self.register(Seismic3DStreamerShotGathersTemplate())
138138

139139
def get(self, template_name: str) -> AbstractDatasetTemplate:
140140
"""Get an instance of a template from the registry by its name.

src/mdio/builder/templates/seismic_2d_prestack_cdp.py renamed to src/mdio/builder/templates/seismic_2d_cdp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Seismic2DPreStackCDPTemplate MDIO v1 dataset templates."""
1+
"""Seismic2DCDPGathersTemplate MDIO v1 dataset templates."""
22

33
from typing import Any
44

@@ -7,7 +7,7 @@
77
from mdio.builder.templates.types import SeismicDataDomain
88

99

10-
class Seismic2DPreStackCDPTemplate(AbstractDatasetTemplate):
10+
class Seismic2DCdpGathersTemplate(AbstractDatasetTemplate):
1111
"""Seismic CDP pre-stack 2D time or depth Dataset template."""
1212

1313
def __init__(self, data_domain: SeismicDataDomain, gather_domain: CdpGatherDomain):
@@ -26,7 +26,7 @@ def __init__(self, data_domain: SeismicDataDomain, gather_domain: CdpGatherDomai
2626
def _name(self) -> str:
2727
gather_domain_suffix = self._gather_domain.capitalize()
2828
data_domain_suffix = self._data_domain.capitalize()
29-
return f"PreStackCdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"
29+
return f"Cdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"
3030

3131
def _load_dataset_attributes(self) -> dict[str, Any]:
3232
return {"surveyType": "2D", "gatherType": "cdp"}

src/mdio/builder/templates/seismic_2d_prestack_shot.py renamed to src/mdio/builder/templates/seismic_2d_streamer_shot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Seismic2DPreStackShotTemplate MDIO v1 dataset templates."""
1+
"""Seismic2DStreamerShotGathersTemplate MDIO v1 dataset templates."""
22

33
from typing import Any
44

@@ -9,10 +9,10 @@
99
from mdio.builder.templates.types import SeismicDataDomain
1010

1111

12-
class Seismic2DPreStackShotTemplate(AbstractDatasetTemplate):
12+
class Seismic2DStreamerShotGathersTemplate(AbstractDatasetTemplate):
1313
"""Seismic Shot pre-stack 2D time or depth Dataset template."""
1414

15-
def __init__(self, data_domain: SeismicDataDomain):
15+
def __init__(self, data_domain: SeismicDataDomain = "time"):
1616
super().__init__(data_domain=data_domain)
1717

1818
self._dim_names = ("shot_point", "channel", self._data_domain)
@@ -21,7 +21,7 @@ def __init__(self, data_domain: SeismicDataDomain):
2121

2222
@property
2323
def _name(self) -> str:
24-
return f"PreStackShotGathers2D{self._data_domain.capitalize()}"
24+
return "StreamerShotGathers2D"
2525

2626
def _load_dataset_attributes(self) -> dict[str, Any]:
2727
return {"surveyType": "2D", "ensembleType": "common_source"}

src/mdio/builder/templates/seismic_3d_prestack_cdp.py renamed to src/mdio/builder/templates/seismic_3d_cdp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Seismic3DPreStackCDPTemplate MDIO v1 dataset templates."""
1+
"""Seismic3DCDPGathersTemplate MDIO v1 dataset templates."""
22

33
from typing import Any
44

@@ -7,7 +7,7 @@
77
from mdio.builder.templates.types import SeismicDataDomain
88

99

10-
class Seismic3DPreStackCDPTemplate(AbstractDatasetTemplate):
10+
class Seismic3DCdpGathersTemplate(AbstractDatasetTemplate):
1111
"""Seismic CDP pre-stack 3D gathers Dataset template."""
1212

1313
def __init__(self, data_domain: SeismicDataDomain, gather_domain: CdpGatherDomain):
@@ -26,7 +26,7 @@ def __init__(self, data_domain: SeismicDataDomain, gather_domain: CdpGatherDomai
2626
def _name(self) -> str:
2727
gather_domain_suffix = self._gather_domain.capitalize()
2828
data_domain_suffix = self._data_domain.capitalize()
29-
return f"PreStackCdp{gather_domain_suffix}Gathers3D{data_domain_suffix}"
29+
return f"Cdp{gather_domain_suffix}Gathers3D{data_domain_suffix}"
3030

3131
def _load_dataset_attributes(self) -> dict[str, Any]:
3232
return {"surveyType": "3D", "gatherType": "cdp"}

src/mdio/builder/templates/seismic_3d_prestack_coca.py renamed to src/mdio/builder/templates/seismic_3d_coca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Seismic3DPreStackCocaTemplate MDIO v1 dataset templates."""
1+
"""Seismic3DCocaTemplate MDIO v1 dataset templates."""
22

33
from typing import Any
44

@@ -9,7 +9,7 @@
99
from mdio.builder.templates.types import SeismicDataDomain
1010

1111

12-
class Seismic3DPreStackCocaTemplate(AbstractDatasetTemplate):
12+
class Seismic3DCocaGathersTemplate(AbstractDatasetTemplate):
1313
"""Seismic CoCA (common offset, common azimuth) pre-stack 3D Dataset template."""
1414

1515
def __init__(self, data_domain: SeismicDataDomain):
@@ -21,7 +21,7 @@ def __init__(self, data_domain: SeismicDataDomain):
2121

2222
@property
2323
def _name(self) -> str:
24-
return f"PreStackCocaGathers3D{self._data_domain.capitalize()}"
24+
return f"CocaGathers3D{self._data_domain.capitalize()}"
2525

2626
def _load_dataset_attributes(self) -> dict[str, Any]:
2727
return {"surveyType": "3D", "gatherType": "common_offset_common_azimuth"}

src/mdio/builder/templates/seismic_3d_prestack_shot.py renamed to src/mdio/builder/templates/seismic_3d_streamer_shot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Seismic3DPreStackShotTemplate MDIO v1 dataset templates."""
1+
"""Seismic3DStreamerShotGathersTemplate MDIO v1 dataset templates."""
22

33
from typing import Any
44

@@ -9,10 +9,10 @@
99
from mdio.builder.templates.types import SeismicDataDomain
1010

1111

12-
class Seismic3DPreStackShotTemplate(AbstractDatasetTemplate):
12+
class Seismic3DStreamerShotGathersTemplate(AbstractDatasetTemplate):
1313
"""Seismic Shot pre-stack 3D time or depth Dataset template."""
1414

15-
def __init__(self, data_domain: SeismicDataDomain):
15+
def __init__(self, data_domain: SeismicDataDomain = "time"):
1616
super().__init__(data_domain=data_domain)
1717

1818
self._dim_names = ("shot_point", "cable", "channel", self._data_domain)
@@ -22,7 +22,7 @@ def __init__(self, data_domain: SeismicDataDomain):
2222

2323
@property
2424
def _name(self) -> str:
25-
return f"PreStackShotGathers3D{self._data_domain.capitalize()}"
25+
return "StreamerShotGathers3D"
2626

2727
def _load_dataset_attributes(self) -> dict[str, Any]:
2828
return {"surveyType": "3D", "ensembleType": "common_source"}

tests/integration/test_import_streamer_grid_overrides.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_import_4d_segy( # noqa: PLR0913
4949

5050
segy_to_mdio(
5151
segy_spec=segy_spec,
52-
mdio_template=TemplateRegistry().get("PreStackShotGathers3DTime"),
52+
mdio_template=TemplateRegistry().get("StreamerShotGathers3D"),
5353
input_path=segy_path,
5454
output_path=zarr_tmp,
5555
overwrite=True,
@@ -96,7 +96,7 @@ def test_import_4d_segy( # noqa: PLR0913
9696

9797
segy_to_mdio(
9898
segy_spec=segy_spec,
99-
mdio_template=TemplateRegistry().get("PreStackShotGathers3DTime"),
99+
mdio_template=TemplateRegistry().get("StreamerShotGathers3D"),
100100
input_path=segy_path,
101101
output_path=zarr_tmp,
102102
overwrite=True,
@@ -146,7 +146,7 @@ def test_import_4d_segy( # noqa: PLR0913
146146
with pytest.raises(GridTraceSparsityError) as execinfo:
147147
segy_to_mdio(
148148
segy_spec=segy_spec,
149-
mdio_template=TemplateRegistry().get("PreStackShotGathers3DTime"),
149+
mdio_template=TemplateRegistry().get("StreamerShotGathers3D"),
150150
input_path=segy_path,
151151
output_path=zarr_tmp,
152152
overwrite=True,

tests/integration/test_segy_import_export_masked.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __iter__(self) -> Iterable[MaskedExportConfigTypes]:
116116
GATHER_2D_CONF = MaskedExportConfig(
117117
GridConfig(name="2d_gather", dims=[Dimension("cdp", 1, 40, 1), Dimension("offset", 25, 20, 25)]),
118118
SegyFactoryConfig(revision=1, header_byte_map={"cdp": 21, "offset": 37}, num_samples=201),
119-
SegyToMdioConfig(chunks=[2, 12, 128], template="PreStackCdpOffsetGathers2DTime"),
119+
SegyToMdioConfig(chunks=[2, 12, 128], template="CdpOffsetGathers2DTime"),
120120
SelectionMaskConfig(mask_num_dims=1, remove_frac=0.9),
121121
)
122122

@@ -126,14 +126,14 @@ def __iter__(self) -> Iterable[MaskedExportConfigTypes]:
126126
dims=[Dimension("inline", 10, 8, 1), Dimension("crossline", 100, 10, 2), Dimension("offset", 25, 10, 25)],
127127
),
128128
SegyFactoryConfig(revision=1, header_byte_map={"inline": 189, "crossline": 193, "offset": 37}, num_samples=201),
129-
SegyToMdioConfig(chunks=[4, 4, 2, 128], template="PreStackCdpOffsetGathers3DTime"),
129+
SegyToMdioConfig(chunks=[4, 4, 2, 128], template="CdpOffsetGathers3DTime"),
130130
SelectionMaskConfig(mask_num_dims=2, remove_frac=0.96),
131131
)
132132

133133
STREAMER_2D_CONF = MaskedExportConfig(
134134
GridConfig(name="2d_streamer", dims=[Dimension("shot_point", 10, 10, 1), Dimension("channel", 25, 60, 25)]),
135135
SegyFactoryConfig(revision=1, header_byte_map={"shot_point": 7, "channel": 131}, num_samples=201),
136-
SegyToMdioConfig(chunks=[2, 12, 128], template="PreStackShotGathers2DTime"),
136+
SegyToMdioConfig(chunks=[2, 12, 128], template="StreamerShotGathers2D"),
137137
SelectionMaskConfig(mask_num_dims=1, remove_frac=0.7),
138138
)
139139

@@ -143,7 +143,7 @@ def __iter__(self) -> Iterable[MaskedExportConfigTypes]:
143143
dims=[Dimension("shot_point", 10, 5, 1), Dimension("cable", 1, 6, 1), Dimension("channel", 25, 60, 25)],
144144
),
145145
SegyFactoryConfig(revision=1, header_byte_map={"shot_point": 7, "cable": 193, "channel": 131}, num_samples=201),
146-
SegyToMdioConfig(chunks=[1, 2, 12, 128], template="PreStackShotGathers3DTime"),
146+
SegyToMdioConfig(chunks=[1, 2, 12, 128], template="StreamerShotGathers3D"),
147147
SelectionMaskConfig(mask_num_dims=1, remove_frac=0.5),
148148
)
149149

@@ -160,7 +160,7 @@ def __iter__(self) -> Iterable[MaskedExportConfigTypes]:
160160
SegyFactoryConfig(
161161
revision=1, header_byte_map={"inline": 189, "crossline": 193, "offset": 37, "azimuth": 232}, num_samples=201
162162
),
163-
SegyToMdioConfig(chunks=[4, 4, 4, 1, 128], template="PreStackCocaGathers3DTime"),
163+
SegyToMdioConfig(chunks=[4, 4, 4, 1, 128], template="CocaGathers3DTime"),
164164
SelectionMaskConfig(mask_num_dims=2, remove_frac=0.9),
165165
)
166166
# fmt: on
@@ -301,11 +301,11 @@ def raw_headers_env(request: pytest.FixtureRequest) -> None:
301301
template_names = [
302302
"PostStack2DTime",
303303
"PostStack3DTime",
304-
"PreStackCdpOffsetGathers2DTime",
305-
"PreStackCdpOffsetGathers3DTime",
306-
"PreStackShotGathers2DTime",
307-
"PreStackShotGathers3DTime",
308-
"PreStackCocaGathers3DTime",
304+
"CdpOffsetGathers2DTime",
305+
"CdpOffsetGathers3DTime",
306+
"StreamerShotGathers2D",
307+
"StreamerShotGathers3D",
308+
"CocaGathers3DTime",
309309
]
310310

311311
for template_name in template_names:

tests/unit/v1/templates/test_seismic_2d_prestack_cdp.py renamed to tests/unit/v1/templates/test_seismic_2d_cdp.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for Seismic2DPreStackCDPTemplate."""
1+
"""Unit tests for Seismic2DCdpGathersTemplate."""
22

33
import pytest
44
from tests.unit.v1.helpers import validate_variable
@@ -15,7 +15,7 @@
1515
from mdio.builder.schemas.v1.units import LengthUnitModel
1616
from mdio.builder.schemas.v1.units import TimeUnitEnum
1717
from mdio.builder.schemas.v1.units import TimeUnitModel
18-
from mdio.builder.templates.seismic_2d_prestack_cdp import Seismic2DPreStackCDPTemplate
18+
from mdio.builder.templates.seismic_2d_cdp import Seismic2DCdpGathersTemplate
1919
from mdio.builder.templates.types import CdpGatherDomain
2020
from mdio.builder.templates.types import SeismicDataDomain
2121

@@ -101,12 +101,12 @@ def validate_coordinates_headers_trace_mask(
101101

102102
@pytest.mark.parametrize("data_domain", ["depth", "time"])
103103
@pytest.mark.parametrize("gather_domain", ["offset", "angle"])
104-
class TestSeismic2DPreStackCDPTemplate:
105-
"""Unit tests for Seismic2DPreStackCDPTemplate."""
104+
class TestSeismic2DCdpGathersTemplate:
105+
"""Unit tests for Seismic2DCdpGathersTemplate."""
106106

107107
def test_configuration(self, data_domain: SeismicDataDomain, gather_domain: CdpGatherDomain) -> None:
108-
"""Unit tests for Seismic2DPreStackCDPTemplate."""
109-
t = Seismic2DPreStackCDPTemplate(data_domain, gather_domain)
108+
"""Unit tests for Seismic2DCdpGathersTemplate."""
109+
t = Seismic2DCdpGathersTemplate(data_domain, gather_domain)
110110

111111
# Template attributes for prestack CDP
112112
assert t._dim_names == ("cdp", gather_domain, data_domain)
@@ -128,15 +128,15 @@ def test_build_dataset(
128128
gather_domain: CdpGatherDomain,
129129
structured_headers: StructuredType,
130130
) -> None:
131-
"""Unit tests for Seismic2DPreStackCDPDepthTemplate build."""
132-
t = Seismic2DPreStackCDPTemplate(data_domain, gather_domain)
131+
"""Unit tests for Seismic2DCdpGathersDepthTemplate build."""
132+
t = Seismic2DCdpGathersTemplate(data_domain, gather_domain)
133133
t.add_units({"cdp_x": UNITS_METER, "cdp_y": UNITS_METER}) # spatial domain units
134134
t.add_units({"offset": UNITS_METER, "angle": UNITS_DEGREE}) # gather domain units
135135
t.add_units({"time": UNITS_SECOND, "depth": UNITS_METER}) # data domain units
136136

137137
gather_domain_suffix = gather_domain.capitalize()
138138
data_domain_suffix = data_domain.capitalize()
139-
assert t.name == f"PreStackCdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"
139+
assert t.name == f"Cdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"
140140
dataset = t.build_dataset("North Sea 2D Prestack", sizes=(512, 36, 1536), header_dtype=structured_headers)
141141

142142
assert dataset.metadata.name == "North Sea 2D Prestack"
@@ -164,9 +164,9 @@ def test_build_dataset(
164164
@pytest.mark.parametrize("gather_domain", ["Offset", "OffSeT"])
165165
def test_domain_case_handling(data_domain: str, gather_domain: str) -> None:
166166
"""Test that domain parameter handles different cases correctly."""
167-
template = Seismic2DPreStackCDPTemplate(data_domain, gather_domain)
167+
template = Seismic2DCdpGathersTemplate(data_domain, gather_domain)
168168
assert template._data_domain == data_domain.lower()
169169

170170
gather_domain_suffix = gather_domain.lower().capitalize()
171171
data_domain_suffix = data_domain.lower().capitalize()
172-
assert template.name == f"PreStackCdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"
172+
assert template.name == f"Cdp{gather_domain_suffix}Gathers2D{data_domain_suffix}"

tests/unit/v1/templates/test_seismic_2d_prestack_shot.py renamed to tests/unit/v1/templates/test_seismic_2d_streamer_shot.py

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
"""Unit tests for Seismic2DPreStackShotTemplate."""
1+
"""Unit tests for Seismic2DStreamerShotGathersTemplate."""
22

3-
import pytest
43
from tests.unit.v1.helpers import validate_variable
54

65
from mdio.builder.schemas.chunk_grid import RegularChunkGrid
@@ -13,7 +12,7 @@
1312
from mdio.builder.schemas.v1.units import LengthUnitModel
1413
from mdio.builder.schemas.v1.units import TimeUnitEnum
1514
from mdio.builder.schemas.v1.units import TimeUnitModel
16-
from mdio.builder.templates.seismic_2d_prestack_shot import Seismic2DPreStackShotTemplate
15+
from mdio.builder.templates.seismic_2d_streamer_shot import Seismic2DStreamerShotGathersTemplate
1716

1817
UNITS_METER = LengthUnitModel(length=LengthUnitEnum.METER)
1918
UNITS_SECOND = TimeUnitModel(time=TimeUnitEnum.SECOND)
@@ -106,12 +105,12 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
106105
assert group_coord_y.metadata.units_v1 == UNITS_METER
107106

108107

109-
class TestSeismic2DPreStackShotTemplate:
110-
"""Unit tests for Seismic2DPreStackShotTemplate."""
108+
class TestSeismic2DStreamerShotGathersTemplate:
109+
"""Unit tests for Seismic2DStreamerShotGathersTemplate."""
111110

112111
def test_configuration(self) -> None:
113-
"""Unit tests for Seismic2DPreStackShotTemplate."""
114-
t = Seismic2DPreStackShotTemplate(data_domain="time")
112+
"""Unit tests for Seismic2DStreamerShotGathersTemplate."""
113+
t = Seismic2DStreamerShotGathersTemplate(data_domain="time")
115114

116115
# Template attributes for prestack shot
117116
assert t._data_domain == "time"
@@ -127,16 +126,16 @@ def test_configuration(self) -> None:
127126
attrs = t._load_dataset_attributes()
128127
assert attrs == {"surveyType": "2D", "ensembleType": "common_source"}
129128

130-
assert t.name == "PreStackShotGathers2DTime"
129+
assert t.name == "StreamerShotGathers2D"
131130

132131
def test_build_dataset(self, structured_headers: StructuredType) -> None:
133-
"""Unit tests for Seismic2DPreStackShotTemplate build in time domain."""
134-
t = Seismic2DPreStackShotTemplate(data_domain="time")
132+
"""Unit tests for Seismic2DStreamerShotGathersTemplate build in time domain."""
133+
t = Seismic2DStreamerShotGathersTemplate(data_domain="time")
135134
t.add_units({"source_coord_x": UNITS_METER, "source_coord_y": UNITS_METER}) # spatial domain units
136135
t.add_units({"group_coord_x": UNITS_METER, "group_coord_y": UNITS_METER}) # spatial domain units
137136
t.add_units({"time": UNITS_SECOND}) # data domain units
138137

139-
assert t.name == "PreStackShotGathers2DTime"
138+
assert t.name == "StreamerShotGathers2D"
140139
dataset = t.build_dataset("North Sea 2D Shot Time", sizes=(256, 24, 2048), header_dtype=structured_headers)
141140

142141
assert dataset.metadata.name == "North Sea 2D Shot Time"
@@ -158,11 +157,3 @@ def test_build_dataset(self, structured_headers: StructuredType) -> None:
158157
assert isinstance(seismic.metadata.chunk_grid, RegularChunkGrid)
159158
assert seismic.metadata.chunk_grid.configuration.chunk_shape == (16, 32, 2048)
160159
assert seismic.metadata.stats_v1 is None
161-
162-
163-
@pytest.mark.parametrize("data_domain", ["Time", "TiME"])
164-
def test_domain_case_handling(data_domain: str) -> None:
165-
"""Test that domain parameter handles different cases correctly."""
166-
template = Seismic2DPreStackShotTemplate(data_domain=data_domain)
167-
assert template._data_domain == data_domain.lower()
168-
assert template.name.endswith(data_domain.capitalize())

0 commit comments

Comments
 (0)