Skip to content

Commit

Permalink
fix: anchor config in load #151
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed May 2, 2024
1 parent 69bdf64 commit 699e676
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions odc/stac/_mdtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,8 @@ def check_arg_sets(*args: str) -> bool:
if resolution is None or crs is None:
return None

if anchor is None and align is not None:
anchor = _align2anchor(align, resolution)
else:
anchor = _anchor
if anchor is None:
anchor = _anchor if align is None else _align2anchor(align, resolution)

if geopolygon is not None:
assert isinstance(geopolygon, Geometry)
Expand Down

0 comments on commit 699e676

Please sign in to comment.