@@ -56,6 +56,7 @@ def to_xarray_dataset(data: dict[str, np.array], dimensions: dict[str, np.array]
5656
5757
5858@pytest .mark .v4remove
59+ @pytest .mark .xfail (reason = "GH1946" )
5960@pytest .fixture
6061def multifile_fieldset (tmp_path ):
6162 stem = "test_subsets"
@@ -79,6 +80,7 @@ def multifile_fieldset(tmp_path):
7980
8081
8182@pytest .mark .v4alpha
83+ @pytest .mark .xfail (reason = "GH1946" )
8284@pytest .mark .parametrize ("xdim" , [100 , 200 ])
8385@pytest .mark .parametrize ("ydim" , [100 , 200 ])
8486def test_fieldset_from_data (xdim , ydim ):
@@ -101,6 +103,7 @@ def test_fieldset_vmin_vmax():
101103
102104
103105@pytest .mark .v4alpha
106+ @pytest .mark .xfail (reason = "GH1946" )
104107@pytest .mark .parametrize ("ttype" , ["float" , "datetime64" ])
105108@pytest .mark .parametrize ("tdim" , [1 , 20 ])
106109def test_fieldset_from_data_timedims (ttype , tdim ):
@@ -116,6 +119,7 @@ def test_fieldset_from_data_timedims(ttype, tdim):
116119
117120
118121@pytest .mark .v4alpha
122+ @pytest .mark .xfail (reason = "GH1946" )
119123@pytest .mark .parametrize ("xdim" , [100 , 200 ])
120124@pytest .mark .parametrize ("ydim" , [100 , 50 ])
121125def test_fieldset_from_data_different_dimensions (xdim , ydim ):
@@ -146,6 +150,7 @@ def test_fieldset_from_data_different_dimensions(xdim, ydim):
146150
147151
148152@pytest .mark .v4alpha
153+ @pytest .mark .xfail (reason = "GH1946" )
149154def test_fieldset_from_modulefile ():
150155 nemo_fname = str (TEST_DATA / "fieldset_nemo.py" )
151156 nemo_error_fname = str (TEST_DATA / "fieldset_nemo_error.py" )
@@ -165,6 +170,7 @@ def test_fieldset_from_modulefile():
165170
166171
167172@pytest .mark .v4alpha
173+ @pytest .mark .xfail (reason = "GH1946" )
168174def test_field_from_netcdf_fieldtypes ():
169175 filenames = {
170176 "varU" : {
@@ -191,6 +197,7 @@ def test_field_from_netcdf_fieldtypes():
191197
192198
193199@pytest .mark .v4alpha
200+ @pytest .mark .xfail (reason = "GH1946" )
194201def test_fieldset_from_agrid_dataset ():
195202 filenames = {
196203 "lon" : str (TEST_DATA / "mask_nemo_cross_180lon.nc" ),
@@ -203,6 +210,7 @@ def test_fieldset_from_agrid_dataset():
203210
204211
205212@pytest .mark .v4remove
213+ @pytest .mark .xfail (reason = "GH1946" )
206214def test_fieldset_from_cgrid_interpmethod ():
207215 filenames = {
208216 "lon" : str (TEST_DATA / "mask_nemo_cross_180lon.nc" ),
@@ -218,6 +226,7 @@ def test_fieldset_from_cgrid_interpmethod():
218226
219227
220228@pytest .mark .v4alpha
229+ @pytest .mark .xfail (reason = "GH1946" )
221230@pytest .mark .parametrize ("calltype" , ["from_data" , "from_nemo" ])
222231def test_illegal_dimensionsdict (calltype ):
223232 with pytest .raises (NameError ):
@@ -234,6 +243,7 @@ def test_illegal_dimensionsdict(calltype):
234243
235244
236245@pytest .mark .v4alpha
246+ @pytest .mark .xfail (reason = "GH1946" )
237247@pytest .mark .parametrize ("xdim" , [100 , 200 ])
238248@pytest .mark .parametrize ("ydim" , [100 , 200 ])
239249def test_add_field (xdim , ydim , tmpdir ):
@@ -245,6 +255,7 @@ def test_add_field(xdim, ydim, tmpdir):
245255
246256
247257@pytest .mark .v4alpha
258+ @pytest .mark .xfail (reason = "GH1946" )
248259@pytest .mark .parametrize ("dupobject" , ["same" , "new" ])
249260def test_add_duplicate_field (dupobject ):
250261 data , dimensions = generate_fieldset_data (100 , 100 )
@@ -260,6 +271,7 @@ def test_add_duplicate_field(dupobject):
260271
261272
262273@pytest .mark .v4alpha
274+ @pytest .mark .xfail (reason = "GH1946" )
263275@pytest .mark .parametrize ("fieldtype" , ["normal" , "vector" ])
264276def test_add_field_after_pset (fieldtype ):
265277 data , dimensions = generate_fieldset_data (100 , 100 )
@@ -282,6 +294,7 @@ def test_fieldset_samegrids_from_file(multifile_fieldset):
282294
283295
284296@pytest .mark .v4alpha
297+ @pytest .mark .xfail (reason = "GH1946" )
285298@pytest .mark .parametrize ("gridtype" , ["A" , "C" ])
286299def test_fieldset_dimlength1_cgrid (gridtype ):
287300 fieldset = FieldSet .from_data ({"U" : 0 , "V" : 0 }, {"lon" : 0 , "lat" : 0 })
@@ -304,6 +317,7 @@ def assign_dataset_timestamp_dim(ds, timestamp):
304317
305318
306319@pytest .mark .v4remove
320+ @pytest .mark .xfail (reason = "GH1946" )
307321def test_fieldset_diffgrids_from_file (tmp_path ):
308322 """Test for subsetting fieldset from file using indices dict."""
309323 stem = "test_subsets"
@@ -335,6 +349,7 @@ def test_fieldset_diffgrids_from_file(tmp_path):
335349
336350
337351@pytest .mark .v4alpha
352+ @pytest .mark .xfail (reason = "GH1946" )
338353def test_fieldset_diffgrids_from_file_data (multifile_fieldset ):
339354 """Test for subsetting fieldset from file using indices dict."""
340355 data , dimensions = generate_fieldset_data (100 , 100 )
@@ -349,6 +364,7 @@ def test_fieldset_diffgrids_from_file_data(multifile_fieldset):
349364
350365
351366@pytest .mark .v4alpha
367+ @pytest .mark .xfail (reason = "GH1946" )
352368def test_fieldset_samegrids_from_data ():
353369 """Test for subsetting fieldset from file using indices dict."""
354370 data , dimensions = generate_fieldset_data (100 , 100 )
@@ -365,6 +381,7 @@ def addConst(particle, fieldset, time): # pragma: no cover
365381
366382
367383@pytest .mark .v4alpha
384+ @pytest .mark .xfail (reason = "GH1946" )
368385def test_fieldset_constant ():
369386 data , dimensions = generate_fieldset_data (100 , 100 )
370387 fieldset = FieldSet .from_data (data , dimensions )
@@ -380,6 +397,7 @@ def test_fieldset_constant():
380397
381398
382399@pytest .mark .v4alpha
400+ @pytest .mark .xfail (reason = "GH1946" )
383401@pytest .mark .parametrize ("swapUV" , [False , True ])
384402def test_vector_fields (swapUV ):
385403 lon = np .linspace (0.0 , 10.0 , 12 , dtype = np .float32 )
@@ -404,6 +422,7 @@ def test_vector_fields(swapUV):
404422
405423
406424@pytest .mark .v4alpha
425+ @pytest .mark .xfail (reason = "GH1946" )
407426def test_add_second_vector_field ():
408427 lon = np .linspace (0.0 , 10.0 , 12 , dtype = np .float32 )
409428 lat = np .linspace (0.0 , 10.0 , 10 , dtype = np .float32 )
@@ -556,6 +575,7 @@ def sampleTemp(particle, fieldset, time): # pragma: no cover
556575
557576
558577@pytest .mark .v4alpha
578+ @pytest .mark .xfail (reason = "GH1946" )
559579@pytest .mark .parametrize ("tdim" , [10 , None ])
560580def test_fieldset_from_xarray (tdim ):
561581 def generate_dataset (xdim , ydim , zdim = 1 , tdim = 1 ):
@@ -611,6 +631,7 @@ def test_fieldset_frompop():
611631
612632
613633@pytest .mark .v4alpha
634+ @pytest .mark .xfail (reason = "GH1946" )
614635def test_fieldset_from_data_gridtypes ():
615636 """Simple test for fieldset initialisation from data."""
616637 xdim , ydim , zdim = 20 , 10 , 4
0 commit comments