Skip to content

Commit 723b820

Browse files
committed
Use geomad instead of hdstats.
1 parent 5b85e93 commit 723b820

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

docker/requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11

2-
--extra-index-url https://packages.dea.ga.gov.au/
32
datacube-ows>=1.9
43
datacube[performance,s3]>=1.9.5
54
eodatasets3>1.9
6-
hdstats==0.1.8.post1
5+
geomad
76
numexpr>=2.11
8-
odc-algo>=1.0.1
7+
odc-algo>=1.1.0
98
odc-apps-cloud>=0.2.2
109
# For testing
1110
odc-apps-dc-tools>=0.2.12

tests/test_gm_ls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def dataset():
8282

8383

8484
def test_native_transform(dataset):
85-
_ = pytest.importorskip("hdstats")
85+
_ = pytest.importorskip("geomad")
8686

8787
dataset = dataset.copy()
8888
stats_gmls = StatsGMLS(nodata_classes=(0,))
@@ -104,7 +104,7 @@ def test_native_transform(dataset):
104104

105105

106106
def test_result_bands_to_match_inputs(dataset):
107-
_ = pytest.importorskip("hdstats")
107+
_ = pytest.importorskip("geomad")
108108
mask_filters = {
109109
"cloud": [("closing", 2), ("dilation", 1)],
110110
"shadow": [("closing", 0), ("dilation", 5)],
@@ -130,7 +130,7 @@ def test_result_bands_to_match_inputs(dataset):
130130

131131

132132
def test_result_aux_bands_to_match_inputs(dataset):
133-
_ = pytest.importorskip("hdstats")
133+
_ = pytest.importorskip("geomad")
134134
mask_filters = {
135135
"cloud": [("closing", 2), ("dilation", 1)],
136136
"shadow": [("closing", 0), ("dilation", 5)],
@@ -165,7 +165,7 @@ def test_result_aux_bands_to_match_inputs(dataset):
165165

166166

167167
def test_resampling(dataset):
168-
_ = pytest.importorskip("hdstats")
168+
_ = pytest.importorskip("geomad")
169169
mask_filters = {
170170
"cloud": [("closing", 2), ("dilation", 1)],
171171
"shadow": [("closing", 0), ("dilation", 5)],

tests/test_gm_ls_bitmask.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_fuser(dataset):
109109

110110

111111
def test_reduce(dataset):
112-
_ = pytest.importorskip("hdstats")
112+
_ = pytest.importorskip("geomad")
113113
gm = StatsGMLSBitmask(
114114
bands=["band_red"], offset=-0.2, scale=0.00975, output_scale=100
115115
)
@@ -140,7 +140,7 @@ def test_reduce(dataset):
140140

141141

142142
def test_reduce_with_filters(dataset):
143-
_ = pytest.importorskip("hdstats")
143+
_ = pytest.importorskip("geomad")
144144
mask_filters = [("closing", 2), ("dilation", 1)]
145145
gm = StatsGMLSBitmask(
146146
bands=["band_red"],
@@ -173,7 +173,7 @@ def test_reduce_with_filters(dataset):
173173

174174

175175
def test_aux_result_bands_to_match_inputs(dataset):
176-
_ = pytest.importorskip("hdstats")
176+
_ = pytest.importorskip("geomad")
177177
aux_names = dict(smad="SMAD", emad="EMAD", bcmad="BCMAD", count="COUNT")
178178
gm = StatsGMLSBitmask(
179179
bands=["band_red"],

0 commit comments

Comments
 (0)