Skip to content

Commit

Permalink
quick fix for python <3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
egagli committed Apr 1, 2024
1 parent a4a5566 commit b66bd9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easysnowdata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get_stac_cfg(sensor='sentinel-2-l2a'):
return cfg


def datetime_to_DOWY(date: datetime.datetime) -> typing.Union[int, np.nan]:
def datetime_to_DOWY(date: datetime.datetime):
"""
Convert a datetime to the day of the water year (DOWY).
Expand All @@ -230,7 +230,7 @@ def datetime_to_DOWY(date: datetime.datetime) -> typing.Union[int, np.nan]:
except:
return np.nan

def datetime_to_WY(date: datetime) -> int:
def datetime_to_WY(date: datetime):
"""
Convert a datetime to the water year (WY).
Expand Down

0 comments on commit b66bd9d

Please sign in to comment.