Skip to content

Commit

Permalink
fixed some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed Oct 13, 2020
1 parent 76fe216 commit f79fee1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/eolearn/core/eodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
MAX_DATA_REPR_LEN = 100


@attr.s(repr=False, cmp=False, kw_only=True)
@attr.s(repr=False, eq=False, kw_only=True)
class EOPatch:
"""The basic data object for multi-temporal remotely sensed data, such as satellite imagery and its derivatives.
Expand Down
2 changes: 1 addition & 1 deletion core/eolearn/core/eotask.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _parse_features(features, new_names=False, rename_function=None, default_fea
default_feature_type=default_feature_type, allowed_feature_types=allowed_feature_types)


@attr.s(cmp=False)
@attr.s(eq=False)
class _PrivateTaskConfig:
""" A container for general EOTask parameters required during EOWorkflow and EOExecution
Expand Down
5 changes: 2 additions & 3 deletions core/eolearn/core/eoworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
This source code is licensed under the MIT license found in the LICENSE
file in the root directory of this source tree.
"""

import collections
import logging
import warnings
Expand Down Expand Up @@ -367,7 +366,7 @@ def _make_tasks_unique(tasks):
return unique_tasks


@attr.s(cmp=False) # cmp=False preserves the original hash
@attr.s(eq=False) # eq=False preserves the original hash
class Dependency:
""" Class representing a node in EOWorkflow graph
Expand Down Expand Up @@ -413,7 +412,7 @@ def get_custom_name(self, number=0):
return self.name


class WorkflowResults(collections.Mapping):
class WorkflowResults(collections.abc.Mapping):
""" The result of a workflow is an (immutable) dictionary mapping [1] from EOTasks to results of the workflow.
When an EOTask is passed as an index, its UUID, assigned during workflow execution, is used as the key (as opposed
Expand Down
2 changes: 1 addition & 1 deletion core/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
attrs>=18.2.0
attrs>=19.2.0
python-dateutil
numpy>=1.19.0
geopandas>=0.5.0,!=0.8.0
Expand Down

0 comments on commit f79fee1

Please sign in to comment.