File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2770,6 +2770,7 @@ def test_dump_encodings_h5py(self):
2770
2770
2771
2771
2772
2772
@requires_h5netcdf
2773
+ @requires_netCDF4
2773
2774
class TestH5NetCDFAlreadyOpen :
2774
2775
def test_open_dataset_group (self ):
2775
2776
import h5netcdf
@@ -2854,6 +2855,7 @@ def test_open_twice(self):
2854
2855
with open_dataset (f , engine = "h5netcdf" ):
2855
2856
pass
2856
2857
2858
+ @requires_scipy
2857
2859
def test_open_fileobj (self ):
2858
2860
# open in-memory datasets instead of local file paths
2859
2861
expected = create_test_data ().drop_vars ("dim3" )
@@ -5155,11 +5157,12 @@ def test_open_fsspec():
5155
5157
5156
5158
5157
5159
@requires_h5netcdf
5160
+ @requires_netCDF4
5158
5161
def test_load_single_value_h5netcdf (tmp_path ):
5159
5162
"""Test that numeric single-element vector attributes are handled fine.
5160
5163
5161
5164
At present (h5netcdf v0.8.1), the h5netcdf exposes single-valued numeric variable
5162
- attributes as arrays of length 1, as oppesed to scalars for the NetCDF4
5165
+ attributes as arrays of length 1, as opposed to scalars for the NetCDF4
5163
5166
backend. This was leading to a ValueError upon loading a single value from
5164
5167
a file, see #4471. Test that loading causes no failure.
5165
5168
"""
Original file line number Diff line number Diff line change @@ -727,6 +727,7 @@ def test_datetime_interp_noerror():
727
727
728
728
729
729
@requires_cftime
730
+ @requires_scipy
730
731
def test_3641 ():
731
732
times = xr .cftime_range ("0001" , periods = 3 , freq = "500Y" )
732
733
da = xr .DataArray (range (3 ), dims = ["time" ], coords = [times ])
You can’t perform that action at this time.
0 commit comments