Skip to content

Commit

Permalink
Extract CMR provider string to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Oct 23, 2024
1 parent 82f5b85 commit a89d069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions icepyx/core/cmr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from typing import Final

CMR_PROVIDER: Final = "NSIDC_CPRD"
3 changes: 2 additions & 1 deletion icepyx/core/granules.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import icepyx.core.APIformatting as apifmt
from icepyx.core.auth import EarthdataAuthMixin
from icepyx.core.cmr import CMR_PROVIDER
import icepyx.core.exceptions
from icepyx.core.types import (
CMRParams,
Expand Down Expand Up @@ -234,7 +235,7 @@ def get_avail(
params = apifmt.combine_params(
CMRparams,
{k: reqparams[k] for k in ["short_name", "version", "page_size"]},
{"provider": "NSIDC_CPRD"},
{"provider": CMR_PROVIDER},
)

cmr_search_after = None
Expand Down

0 comments on commit a89d069

Please sign in to comment.