Skip to content

Commit

Permalink
Use consistent import in utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Aug 5, 2024
1 parent fbff0b9 commit e0b1e02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datacube_ows/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from typing import Any, Callable, List, Optional, TypeVar

import pytz
from numpy import datetime64
from numpy import datetime64 as npdt64

F = TypeVar('F', bound=Callable[..., Any])
Expand Down Expand Up @@ -94,7 +93,7 @@ def group_by_solar(pnames: Optional[List[str]] = None) -> "datacube.api.query.Gr
sort_key = base_sort_key
return GroupBy(
dimension='time',
group_by_func=lambda x: datetime64(solar_day(x), "ns"),
group_by_func=lambda x: npdt64(solar_day(x), "ns"),
units='seconds since 1970-01-01 00:00:00',
sort_key=sort_key
)
Expand Down

0 comments on commit e0b1e02

Please sign in to comment.