Skip to content

Commit

Permalink
remaining files
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jan 23, 2024
1 parent 9686db2 commit 2815d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_xugrid_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def test_remove_unassociated_edges():


@pytest.mark.unittest
def test_remove_nan_fillvalue_attrs():
def test_remove_nan_fillvalue_attrs(tmp_path):
"""
xarray writes {"_FillValue": np.nan} to encoding for variables without _FillValue attribute.
This test checks if that is still the case and checks if dfmt.open_partitioned_dataset removes them.
"""
file_nc = dfmt.data.fm_curvedbend_map(return_filepath=True)
file_out = "temp_fillvals_map.nc"
file_out = tmp_path / "temp_fillvals_map.nc"
ds_org = xr.open_dataset(file_nc)
ds_org.to_netcdf(file_out)

Expand Down

0 comments on commit 2815d31

Please sign in to comment.