Skip to content

Commit

Permalink
style(ruff) : automatic lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarasiak authored and github-actions[bot] committed Feb 13, 2025
1 parent b6c1447 commit f2b7d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion earthdaily/earthdatastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def datacube(
"eq": cross_calibration_collection
},
},
deduplicate_items=False
deduplicate_items=False,
)
except Warning:
raise Warning(
Expand Down
8 changes: 4 additions & 4 deletions earthdaily/earthdatastore/_filter_duplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ def _extract_item_metadata(
Tuple of (datetime, footprint)
"""
dt = _parse_datetime(item["properties"]["datetime"])
any_asset = item.get('assets',{}) != {}
if any_asset and method == 'proj:transform':
_first_item = list(item["assets"].keys())[0]
any_asset = item.get("assets", {}) != {}
if any_asset and method == "proj:transform":
_first_item = list(item["assets"].keys())[0]
footprint = tuple(
item["assets"][_first_item].get("proj:transform", item["bbox"])
)
else:
footprint = tuple(round(bbox, 6) for bbox in item['bbox'])
footprint = tuple(round(bbox, 6) for bbox in item["bbox"])
return dt, footprint


Expand Down

0 comments on commit f2b7d52

Please sign in to comment.