Skip to content

Commit

Permalink
process features extras
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaLuksic committed Aug 31, 2023
1 parent 3b4d2fd commit e9f1acc
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
4 changes: 4 additions & 0 deletions eolearn/features/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 `FEATURES_EXTRA` to install dependencies or
install the module-specific dependencies by hand.
"""
File renamed without changes.
File renamed without changes.
23 changes: 17 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ dependencies = [
all = [
"eo-learn[COREGISTRATION,FEATURES,GEOMETRY,IO,MASK,MLTOOLS,VISUALIZATION]",
]
full = ["eo-learn[ALL,RAY,ZARR,METEOBLUE,TDIGEST]"]
full = ["eo-learn[ALL,RAY,ZARR,METEOBLUE,TDIGEST,FEATURES_EXTRA]"]
ray = ["ray[default]"]
zarr = ["s3fs", "zarr"]
coregistration = [
"opencv-python-headless",
] # using headless version of opencv, otherwise gitlab runners fail
features = [
] # using headless, otherwise gitlab runners fail
features = ["opencv-python-headless"]
features_extra = [
"numba>=0.53.0",
"opencv-python-headless",
"scikit-image>=0.19.0",
"scikit-learn",
"scipy",
Expand All @@ -79,7 +79,12 @@ 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 = [
"lightgbm>=2.0.11, <4",
"opencv-python-headless",
"s2cloudless",
"scikit-image>=0.13.0",
]
mltools = ["shapely"]
tdigest = ["tdigest==0.5.2.2"]
mltoolsplotting = ["matplotlib"]
Expand Down Expand Up @@ -174,7 +179,13 @@ ignore = [
"B028", # always demands a stacklevel argument when warning
"PT011", # complains for `pytest.raises(ValueError)` but we use it a lot
]
per-file-ignores = { "__init__.py" = ["F401", "I002"], "conf.py" = ["I002", "FA100"] }
per-file-ignores = { "__init__.py" = [
"F401",
"I002",
], "conf.py" = [
"I002",
"FA100",
] }
exclude = [".git", "__pycache__", "build", "dist"]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pytest

from eolearn.core import FeatureType
from eolearn.features import ClusteringTask
from eolearn.features.extra.clustering import ClusteringTask

logging.basicConfig(level=logging.DEBUG)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from sentinelhub.testing_utils import assert_statistics_match

from eolearn.core import EOPatch, EOTask, FeatureType
from eolearn.features import (
from eolearn.features.extra.interpolation import (
InterpolationTask,
KrigingInterpolationTask,
LinearInterpolationTask,
Expand Down

0 comments on commit e9f1acc

Please sign in to comment.