Skip to content

Commit 817f204

Browse files
fixing time_interval because of fewer NorthSea files
Related to #2750
1 parent eec8b16 commit 817f204

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/test_fieldset.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ def test_fieldset_describe_backends(tmp_path):
431431
coords=ds_coords,
432432
)
433433
fieldset = FieldSet.from_sgrid_conventions(ds_fset)
434-
print(fieldset.describe())
435434

436435
io = StringIO()
437436
expected = """\
@@ -444,15 +443,14 @@ def test_fieldset_describe_backends(tmp_path):
444443
| UVW | VectorField | 0 | CGrid_Velocity(...) | - |
445444
446445
mesh: spherical
447-
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-27T12:00:00.000000000'))
446+
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-12T12:00:00.000000000'))
448447
"""
449448
fieldset.describe(io)
450449
actual = io.getvalue()
451450
assert actual == expected
452451

453452
# Also run with WindowedArray backend
454453
fieldset = fieldset.to_windowed_arrays()
455-
print(fieldset.describe())
456454

457455
io = StringIO()
458456
expected = """\
@@ -465,7 +463,7 @@ def test_fieldset_describe_backends(tmp_path):
465463
| UVW | VectorField | 0 | CGrid_Velocity(...) | - |
466464
467465
mesh: spherical
468-
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-27T12:00:00.000000000'))
466+
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-12T12:00:00.000000000'))
469467
"""
470468
fieldset.describe(io)
471469
actual = io.getvalue()
@@ -475,7 +473,6 @@ def test_fieldset_describe_backends(tmp_path):
475473
ds_fset.to_zarr(path)
476474
ds_zarr = open_raw_zarr(path)
477475
fieldset = FieldSet.from_sgrid_conventions(ds_zarr)
478-
print(fieldset.describe())
479476

480477
io = StringIO()
481478
expected = """\
@@ -488,7 +485,7 @@ def test_fieldset_describe_backends(tmp_path):
488485
| UVW | VectorField | 0 | CGrid_Velocity(...) | - |
489486
490487
mesh: spherical
491-
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-27T12:00:00.000000000'))
488+
time interval: (np.datetime64('2000-01-02T12:00:00.000000000'), np.datetime64('2000-01-12T12:00:00.000000000'))
492489
"""
493490
fieldset.describe(io)
494491
actual = io.getvalue()

0 commit comments

Comments
 (0)