Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 21, 2025
1 parent 007b786 commit 7f11ee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions icepyx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from _icepyx_version import version as __version__

from icepyx.core.base_query import BaseQuery, GenQuery
from icepyx.core.query import Query
from icepyx.core.read import Read
Expand Down
3 changes: 1 addition & 2 deletions icepyx/core/harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _place_order(
collection = harmony.Collection(id=concept_id)
if spatial is not None and isinstance(spatial, str):
spatial = harmony.WKT(spatial)

params = {
"collection": collection,
"spatial": spatial,
Expand All @@ -67,7 +67,6 @@ def _place_order(
if granule_name:
params["granule_name"] = granule_name


request = harmony.Request(**params)

if not request.is_valid():
Expand Down
2 changes: 1 addition & 1 deletion icepyx/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def order_vars(self) -> Union[list[str], None]:
we do need to implement a class that gets the variables even if it'sm only for listing.
"""
if self.product:
return Variables(product=self.product).avail() # type: ignore[no-any-return]
return Variables(product=self.product).avail() # type: ignore[no-any-return]
return []

def show_custom_options(self) -> None:
Expand Down

0 comments on commit 7f11ee8

Please sign in to comment.