Skip to content

Commit

Permalink
added warnings filter
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Sep 9, 2024
1 parent 0e8341f commit 8aa8469
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_interpolate_grid2bnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ def test_interp_uds_to_plipoints():
ds_atdepths = ds_atdepths.rename({'depth_from_z0':'depth'})

#interpolate to plipoints
ds_plipoints = dfmt.interp_uds_to_plipoints(uds=ds_atdepths, gdf=gdf) #workaround for plipoints out of the model domain
import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore", UserWarning)
ds_plipoints = dfmt.interp_uds_to_plipoints(uds=ds_atdepths, gdf=gdf) #workaround for plipoints out of the model domain
assert varn_pointname in ds_plipoints.coords
assert 'depth' in ds_plipoints.coords # TODO: maybe should be z like ncbnd_construct['varn_depth'], although get_Dataset_atdepths() makes depth variable

Expand Down

0 comments on commit 8aa8469

Please sign in to comment.