Skip to content

Commit

Permalink
WIP Remove email option from query.place_order
Browse files Browse the repository at this point in the history
Email is not an option with harmony
  • Loading branch information
trey-stafford committed Nov 13, 2024
1 parent 0da719f commit 6e6fa92
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions icepyx/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ def order_granules(
self,
verbose: bool = False,
subset: bool = True,
email: bool = False,
**kwargs,
) -> None:
"""
Expand All @@ -1021,9 +1020,6 @@ def order_granules(
by default when subset=True, but additional subsetting options are available.
Spatial subsetting returns all data that are within the area of interest (but not complete
granules. This eliminates false-positive granules returned by the metadata-level search)
email :
Have NSIDC auto-send order status email updates to indicate order status as pending/completed.
The emails are sent to the account associated with your Earthdata account.
**kwargs : key-value pairs
Additional parameters to be passed to the subsetter.
By default temporal and spatial subset keys are passed.
Expand Down Expand Up @@ -1056,14 +1052,6 @@ def order_granules(
if self._cmr_reqparams._reqtype == "search":
self._cmr_reqparams._reqtype = "download"

if "email" in self._cmr_reqparams.fmted_keys or email is False:
self._cmr_reqparams.build_params(**self._cmr_reqparams.fmted_keys)
elif email is True:
user_profile = self.auth.get_user_profile() # pyright: ignore[reportAttributeAccessIssue]
self._cmr_reqparams.build_params(
**self._cmr_reqparams.fmted_keys, email=user_profile["email_address"]
)

if subset is False:
self._subsetparams = None
elif (
Expand Down

0 comments on commit 6e6fa92

Please sign in to comment.