Skip to content

Commit fc10d4f

Browse files
authored
Update validation keys for source_kwargs in plan.py
1 parent 22843a6 commit fc10d4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/point_collocation/core/plan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def _search_earthaccess(
733733
If ``earthaccess`` is not installed.
734734
ValueError
735735
If ``source_kwargs`` does not contain at least one of ``"short_name"``,
736-
``"collection_id"``, or ``"doi"``.
736+
``"concept_id"``, or ``"doi"``.
737737
"""
738738
try:
739739
import earthaccess # type: ignore[import-untyped]
@@ -744,11 +744,11 @@ def _search_earthaccess(
744744
) from exc
745745

746746
base_kwargs: dict[str, Any] = dict(source_kwargs or {})
747-
_COLLECTION_ID_KEYS = {"short_name", "collection_id", "doi"}
748-
if not _COLLECTION_ID_KEYS.intersection(base_kwargs):
747+
_CONCEPT_ID_KEYS = {"short_name", "concept_id", "doi"}
748+
if not _CONCEPT_ID_KEYS.intersection(base_kwargs):
749749
raise ValueError(
750750
"'source_kwargs' must contain at least one of 'short_name', "
751-
"'collection_id', or 'doi' when data_source='earthaccess'."
751+
"'concept_id', or 'doi' when data_source='earthaccess'."
752752
)
753753

754754
# Extract granule_name for post-search filtering (faster than passing to search_data).

0 commit comments

Comments
 (0)