Skip to content

Commit

Permalink
TESTS: Removed index()
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Mar 5, 2022
1 parent f4c0266 commit 3256d61
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 52 deletions.
21 changes: 1 addition & 20 deletions eemont/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,26 +777,7 @@ def index(
DeprecationWarning,
)

return ee_extra.Spectral.core.spectralIndices(
self,
index,
G,
C1,
C2,
L,
cexp,
nexp,
alpha,
slope,
intercept,
gamma,
kernel,
sigma,
p,
c,
online,
drop,
)
return self


@extend(ee.image.Image)
Expand Down
21 changes: 1 addition & 20 deletions eemont/imagecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,26 +474,7 @@ def index(
DeprecationWarning,
)

return ee_extra.Spectral.core.spectralIndices(
self,
index,
G,
C1,
C2,
L,
cexp,
nexp,
alpha,
slope,
intercept,
gamma,
kernel,
sigma,
p,
c,
online,
drop,
)
return self


@extend(ee.imagecollection.ImageCollection)
Expand Down
5 changes: 0 additions & 5 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ def test_S2_online(self):
)
self.assertIsInstance(S2_tested, ee.image.Image)

def test_S2_previous(self):
"""Test the image module for Sentinel-2"""
S2_tested = S2.maskClouds().scale().index(indices, online=True)
self.assertIsInstance(S2_tested, ee.image.Image)

# LANDSAT MISSIONS

def test_L8(self):
Expand Down
7 changes: 0 additions & 7 deletions tests/test_imagecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ def test_S2_online(self):
)
self.assertIsInstance(S2_tested, ee.imagecollection.ImageCollection)

def test_S2_previous(self):
"""Test the image collection module for Sentinel-2"""
S2_tested = (
S2.closest("2020-01-15").maskClouds().scale().index(indices, online=True)
)
self.assertIsInstance(S2_tested, ee.imagecollection.ImageCollection)

# LANDSAT MISSIONS

def test_L8(self):
Expand Down

0 comments on commit 3256d61

Please sign in to comment.