Skip to content

Commit 1da04f9

Browse files
committed
Adjust to the breaking changes in upstream/main
1 parent a9128cb commit 1da04f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/integration/test_z_create_empty.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from tests.integration.testing_helpers import UNITS_FEET_PER_SECOND
3333
from tests.integration.testing_helpers import UNITS_FOOT
3434
from tests.integration.testing_helpers import UNITS_METER
35-
from tests.integration.testing_helpers import UNITS_METER_PER_SECOND
35+
from tests.integration.testing_helpers import UNITS_METERS_PER_SECOND
3636
from tests.integration.testing_helpers import UNITS_NONE
3737
from tests.integration.testing_helpers import UNITS_SECOND
3838
from tests.integration.testing_helpers import get_teapot_segy_spec
@@ -67,7 +67,7 @@ def __init__(self, data_domain: str, is_metric: bool) -> None:
6767
"time": UNITS_SECOND,
6868
"cdp_x": UNITS_METER,
6969
"cdp_y": UNITS_METER,
70-
"velocity": UNITS_METER_PER_SECOND,
70+
"velocity": UNITS_METERS_PER_SECOND,
7171
}
7272
)
7373
else:
@@ -188,7 +188,7 @@ def validate_teapod_dataset_variables(
188188
# Validate the velocity or amplitude data (should be empty)
189189
if is_velocity:
190190
validate_xr_variable(
191-
ds, "velocity", {"inline": 345, "crossline": 188, "time": 1501}, UNITS_METER_PER_SECOND, np.float32
191+
ds, "velocity", {"inline": 345, "crossline": 188, "time": 1501}, UNITS_METERS_PER_SECOND, np.float32
192192
)
193193
else:
194194
validate_xr_variable(

tests/integration/testing_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
UNITS_NONE = None
2121
UNITS_METER = LengthUnitModel(length=LengthUnitEnum.METER)
2222
UNITS_SECOND = TimeUnitModel(time=TimeUnitEnum.SECOND)
23-
UNITS_METER_PER_SECOND = SpeedUnitModel(speed=SpeedUnitEnum.METER_PER_SECOND)
23+
UNITS_METERS_PER_SECOND = SpeedUnitModel(speed=SpeedUnitEnum.METERS_PER_SECOND)
2424
UNITS_FOOT = LengthUnitModel(length=LengthUnitEnum.FOOT)
2525
UNITS_FEET_PER_SECOND = SpeedUnitModel(speed=SpeedUnitEnum.FEET_PER_SECOND)
2626

0 commit comments

Comments
 (0)