Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen committed Aug 5, 2024
1 parent d59c73f commit 9b93e90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import h5py
import pytest
import xarray as xr
import netCDF4 # type: ignore


def pytest_addoption(parser):
"""Add command-line flags for pytest."""
Expand All @@ -27,7 +27,7 @@ def netcdf4_file(tmpdir):

# Save it to disk as netCDF (in temporary directory)
filepath = f"{tmpdir}/air.nc"
ds.to_netcdf(filepath, format="NETCDF4", engine='netcdf4')
ds.to_netcdf(filepath, format="NETCDF4")
ds.close()

return filepath
Expand All @@ -45,8 +45,8 @@ def netcdf4_files(tmpdir):
# Save it to disk as netCDF (in temporary directory)
filepath1 = f"{tmpdir}/air1.nc"
filepath2 = f"{tmpdir}/air2.nc"
ds1.to_netcdf(filepath1, format="NETCDF4", engine='netcdf4')
ds2.to_netcdf(filepath2, format="NETCDF4", engine='netcdf4')
ds1.to_netcdf(filepath1)
ds2.to_netcdf(filepath2)
ds1.close()
ds2.close()

Expand Down

0 comments on commit 9b93e90

Please sign in to comment.