Skip to content

Commit

Permalink
test: make sure netcdf4 is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jul 29, 2024
1 parent b2d8850 commit dfc0847
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysm3/tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_catalog(tmp_path_factory):
catalog["logpolycoefflux"].loc[dict(index=1, power=1)] = 2
catalog["logpolycoefpolflux"].loc[dict(index=1, power=0)] = 5
fn = tmp_path_factory.mktemp("data") / "test_catalog.h5"
import netCDF4

print(netCDF4.__version__)
catalog.to_netcdf(str(fn), format="NETCDF4") # requires netcdf4 package
return str(fn)

Expand Down

0 comments on commit dfc0847

Please sign in to comment.