Skip to content

Commit

Permalink
Changing plactform as log format 'landsat-7'
Browse files Browse the repository at this point in the history
  • Loading branch information
n3h3m committed Oct 12, 2020
1 parent e6ab5ed commit 0531b9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eodatasets3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def _dataset_label(self, sub_name: str = None):
@property
def platform_abbreviated(self) -> Optional[str]:
# For now from Alchemist the platform is always landsat for C3 processing
if "ls" not in self.dataset.platform:
if "landsat" not in self.dataset.platform:
raise ValueError(
"ComplicatedNamingConventionsDerivatives assumes lansat as platform"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def test_dea_c3_naming_conventions(tmp_path: Path):
A sample scene for Alchemist C3 processing that tests the naming conventions.
"""
p = DatasetAssembler(tmp_path, naming_conventions="dea_c3")
p.platform = "ga_ls5t"
p.platform = "landsat-7"
p.datetime = datetime(1998, 7, 30)
p.product_family = "wo"
p.processed = "1998-07-30T12:23:23"
Expand Down

0 comments on commit 0531b9b

Please sign in to comment.