Skip to content

Commit

Permalink
process mask extras
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaLuksic committed Aug 31, 2023
1 parent e9f1acc commit ce0767d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion eolearn/mask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Public classes and functions of mask subpackage
"""

from .cloud_mask import CloudMaskTask
from .mask_counting import ClassFrequencyTask
from .masking import JoinMasksTask, MaskFeatureTask
from .snow_mask import SnowMaskTask, TheiaSnowMaskTask
Expand Down
4 changes: 4 additions & 0 deletions eolearn/mask/extra/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
A collection of EOTasks with non-standard dependencies. Use the extra `MASK_EXTRA` to install dependencies or
install the module-specific dependencies by hand.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from eolearn.core.types import Feature
from eolearn.core.utils.common import _apply_to_spatial_axes

from .utils import resize_images
from ..utils import resize_images

LOGGER = logging.getLogger(__name__)

Expand Down
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,8 @@ geodb = [
"xcube-geodb @ git+git://github.com/dcs4cop/xcube-geodb.git",
]
meteoblue = ["meteoblue_dataset_sdk>=1,<2"]
mask = [
"lightgbm>=2.0.11, <4",
"opencv-python-headless",
"s2cloudless",
"scikit-image>=0.13.0",
]
mask = ["opencv-python-headless"]
mask_extra = ["lightgbm>=2.0.11, <4", "s2cloudless", "scikit-image>=0.13.0"]
mltools = ["shapely"]
tdigest = ["tdigest==0.5.2.2"]
mltoolsplotting = ["matplotlib"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from numpy.testing import assert_array_equal

from eolearn.core import FeatureType
from eolearn.mask import CloudMaskTask
from eolearn.mask.cloud_mask import _get_window_indices, _OldCloudMaskTask
from eolearn.mask.extra.cloud_mask import CloudMaskTask, _get_window_indices, _OldCloudMaskTask


@pytest.mark.parametrize(
Expand Down

0 comments on commit ce0767d

Please sign in to comment.