Skip to content

Commit b3bbbb6

Browse files
committed
Replace pickle with NetCDF
1 parent c55c582 commit b3bbbb6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Binary file not shown.

tests/test_intertidal.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import rioxarray
77
import numpy as np
88
import pandas as pd
9+
import xarray as xr
910
import seaborn as sns
1011
from mdutils import Html
1112
from mdutils.mdutils import MdUtils
@@ -23,12 +24,9 @@
2324
@pytest.fixture()
2425
def satellite_ds():
2526
"""
26-
Loads a timeseries of satellite data from a .pickle file.
27-
TODO: Replace this with data loaded directly from datacube
28-
after adding access to prod database.
27+
Loads a pre-generated timeseries of satellite data from NetCDF.
2928
"""
30-
with open("tests/data/satellite_ds.pickle", "rb") as handle:
31-
return pickle.load(handle)
29+
return xr.open_dataset("tests/data/satellite_ds.pickle")
3230

3331

3432
@pytest.mark.dependency()

0 commit comments

Comments
 (0)