Skip to content

Commit 1f8b81a

Browse files
Apply suggestions from code review
Co-authored-by: Chuck Daniels <chuck@developmentseed.org>
1 parent 12eace4 commit 1f8b81a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

cmr/queries.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ def online_only(self, online_only: bool = True) -> Self:
391391
return self
392392

393393
def _format_date(
394-
self,
395-
date_from: Optional[DateLike],
396-
date_to: Optional[DateLike]
394+
self,
395+
date_from: Optional[DateLike],
396+
date_to: Optional[DateLike]
397397
) -> Tuple[str, str]:
398398
"""
399399
Format dates into expected format for date queries.
@@ -446,10 +446,10 @@ def convert_to_string(date: Optional[DateLike], default: datetime) -> str:
446446
return date_from, date_to
447447

448448
def revision_date(
449-
self,
450-
date_from: Optional[DateLike],
451-
date_to: Optional[DateLike],
452-
exclude_boundary: bool = False,
449+
self,
450+
date_from: Optional[DateLike],
451+
date_to: Optional[DateLike],
452+
exclude_boundary: bool = False,
453453
) -> Self:
454454
"""
455455
Filter by an open or closed date range for a query that captures updated items.
@@ -479,10 +479,10 @@ def revision_date(
479479
return self
480480

481481
def temporal(
482-
self,
483-
date_from: Optional[DateLike],
484-
date_to: Optional[DateLike],
485-
exclude_boundary: bool = False,
482+
self,
483+
date_from: Optional[DateLike],
484+
date_to: Optional[DateLike],
485+
exclude_boundary: bool = False,
486486
) -> Self:
487487
"""
488488
Filter by an open or closed date range for a temporal query.
@@ -622,11 +622,11 @@ def polygon(self, coordinates: Sequence[PointLike]) -> Self:
622622
return self
623623

624624
def bounding_box(
625-
self,
626-
lower_left_lon: FloatLike,
627-
lower_left_lat: FloatLike,
628-
upper_right_lon: FloatLike,
629-
upper_right_lat: FloatLike,
625+
self,
626+
lower_left_lon: FloatLike,
627+
lower_left_lat: FloatLike,
628+
upper_right_lon: FloatLike,
629+
upper_right_lat: FloatLike,
630630
) -> Self:
631631
"""
632632
Filter by granules that overlap a bounding box. Must be used in combination with
@@ -742,7 +742,7 @@ def __init__(self, mode: str = CMR_OPS):
742742
self.concept_id_chars = {"G", "C"}
743743

744744
def orbit_number(
745-
self, orbit1: FloatLike, orbit2: Optional[FloatLike] = None
745+
self, orbit1: FloatLike, orbit2: Optional[FloatLike] = None
746746
) -> Self:
747747
""" "
748748
Filter by the orbit number the granule was acquired during. Either a single
@@ -892,7 +892,7 @@ def granule_ur(self, granule_ur: str) -> Self:
892892
return self
893893

894894
def readable_granule_name(
895-
self, readable_granule_name: Union[str, Sequence[str]]
895+
self, readable_granule_name: Union[str, Sequence[str]]
896896
) -> Self:
897897
"""
898898
Filter by the readable granule name (producer_granule_id if present, otherwise producer_granule_id).

0 commit comments

Comments
 (0)