Skip to content

Commit

Permalink
Add gfmap dependency and migrate imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kvantricht committed Jun 21, 2024
1 parent 47a7f65 commit dc7ac30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
3 changes: 1 addition & 2 deletions src/worldcereal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env python3

from ._version import __version__
from .utils.spatial import BoundingBoxExtent

__all__ = ["__version__", "BoundingBoxExtent"]
__all__ = ["__version__"]

SUPPORTED_SEASONS = [
"tc-s1",
Expand Down
3 changes: 2 additions & 1 deletion src/worldcereal/seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import numpy as np
import pandas as pd
from loguru import logger
from openeo_gfmap import BoundingBoxExtent

from worldcereal import SEASONAL_MAPPING, SUPPORTED_SEASONS, BoundingBoxExtent
from worldcereal import SEASONAL_MAPPING, SUPPORTED_SEASONS
from worldcereal.data import cropcalendars

# from worldcereal.utils import aez as aezloader
Expand Down
56 changes: 0 additions & 56 deletions src/worldcereal/utils/spatial.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/worldcerealtests/test_seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import numpy as np
import pandas as pd
from openeo_gfmap import BoundingBoxExtent

from worldcereal import BoundingBoxExtent
from worldcereal.seasons import (
circular_median_day_of_year,
doy_from_tiff,
Expand Down

0 comments on commit dc7ac30

Please sign in to comment.