@@ -52,36 +52,6 @@ def test_returns_dims_and_coords_in_template_order(self) -> None:
5252 np .testing .assert_array_equal (non_dim ["cdp_x" ], cdp_x )
5353 np .testing .assert_array_equal (non_dim ["cdp_y" ], cdp_y )
5454
55- def test_missing_dimension_raises (self ) -> None :
56- """A template dim missing from the grid should raise ValueError."""
57- grid = make_grid (
58- [
59- ("inline" , np .array ([1 , 2 ], dtype = np .int32 )),
60- # Missing 'crossline'
61- ("time" , np .array ([0 , 4 ], dtype = np .int32 )),
62- ]
63- )
64- headers = make_header_array ({"cdp_x" : np .zeros (2 , dtype = np .float64 ), "cdp_y" : np .zeros (2 , dtype = np .float64 )})
65-
66- template = Seismic3DPostStackTemplate (data_domain = "time" )
67-
68- with pytest .raises (ValueError , match = r"Dimension 'crossline' was not found" ):
69- _get_coordinates (grid , headers , template )
70-
71- def test_missing_coordinate_field_raises (self ) -> None :
72- """A template coord absent from SEG-Y headers should raise ValueError."""
73- inline = np .array ([1 , 2 ], dtype = np .int32 )
74- crossline = np .array ([10 , 20 ], dtype = np .int32 )
75- sample = np .array ([0 , 4 ], dtype = np .int32 )
76- grid = make_grid ([("inline" , inline ), ("crossline" , crossline ), ("time" , sample )])
77- # Headers lack 'cdp_y'
78- headers = make_header_array ({"cdp_x" : np .zeros (4 , dtype = np .float64 )})
79-
80- template = Seismic3DPostStackTemplate (data_domain = "time" )
81-
82- with pytest .raises (ValueError , match = r"Coordinate 'cdp_y' not found" ):
83- _get_coordinates (grid , headers , template )
84-
8555
8656class TestPopulateCoordinates :
8757 """Tests for the ``_populate_coordinates`` wrapper.
0 commit comments