yirgacheffe 1.4.0__tar.gz → 1.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yirgacheffe-1.4.0/yirgacheffe.egg-info → yirgacheffe-1.4.1}/PKG-INFO +2 -1
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/pyproject.toml +3 -2
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/mlx.py +2 -1
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/numpy.py +2 -1
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/operators.py +2 -2
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1/yirgacheffe.egg-info}/PKG-INFO +2 -1
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/requires.txt +1 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/LICENSE +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/MANIFEST.in +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/README.md +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/setup.cfg +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_area.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_auto_windowing.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_base.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_constants.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_datatypes.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_group.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_h3layer.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_intersection.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_multiband.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_operators.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_optimisation.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_parallel_operators.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_pickle.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_raster.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_rescaling.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_rounding.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_save_with_window.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_sum_with_window.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_uniform_area_layer.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_union.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_vectors.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_window.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/__init__.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/__init__.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/enumeration.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/constants.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/__init__.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/area.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/base.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/constant.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/group.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/h3layer.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/rasters.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/rescaled.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/vectors.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/rounding.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/window.py +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/SOURCES.txt +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/dependency_links.txt +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/entry_points.txt +0 -0
- {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yirgacheffe
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Abstraction of gdal datasets for doing basic math operations
|
|
5
5
|
Author-email: Michael Dales <mwd24@cam.ac.uk>
|
|
6
6
|
License-Expression: ISC
|
|
@@ -13,6 +13,7 @@ Requires-Dist: numpy
|
|
|
13
13
|
Requires-Dist: gdal[numpy]
|
|
14
14
|
Requires-Dist: scikit-image
|
|
15
15
|
Requires-Dist: torch
|
|
16
|
+
Requires-Dist: dill
|
|
16
17
|
Provides-Extra: dev
|
|
17
18
|
Requires-Dist: mypy; extra == "dev"
|
|
18
19
|
Requires-Dist: pylint; extra == "dev"
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "yirgacheffe"
|
|
9
|
-
version = "1.4.
|
|
9
|
+
version = "1.4.1"
|
|
10
10
|
description = "Abstraction of gdal datasets for doing basic math operations"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
authors = [{ name = "Michael Dales", email = "mwd24@cam.ac.uk" }]
|
|
@@ -16,7 +16,8 @@ dependencies = [
|
|
|
16
16
|
"numpy",
|
|
17
17
|
"gdal[numpy]",
|
|
18
18
|
"scikit-image",
|
|
19
|
-
"torch"
|
|
19
|
+
"torch",
|
|
20
|
+
"dill",
|
|
20
21
|
]
|
|
21
22
|
requires-python = ">=3.10"
|
|
22
23
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import Callable, Dict
|
|
1
2
|
|
|
2
3
|
import numpy as np
|
|
3
4
|
import mlx.core as mx # type: ignore
|
|
@@ -182,7 +183,7 @@ def backend_to_dtype(val):
|
|
|
182
183
|
def astype_op(data, datatype):
|
|
183
184
|
return data.astype(dtype_to_backed(datatype))
|
|
184
185
|
|
|
185
|
-
operator_map = {
|
|
186
|
+
operator_map : Dict[op,Callable] = {
|
|
186
187
|
op.ADD: mx.array.__add__,
|
|
187
188
|
op.SUB: mx.array.__sub__,
|
|
188
189
|
op.MUL: mul_op,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import Callable, Dict
|
|
1
2
|
|
|
2
3
|
import numpy as np
|
|
3
4
|
import torch
|
|
@@ -120,7 +121,7 @@ def backend_to_dtype(val):
|
|
|
120
121
|
def astype_op(data, datatype):
|
|
121
122
|
return data.astype(dtype_to_backed(datatype))
|
|
122
123
|
|
|
123
|
-
operator_map = {
|
|
124
|
+
operator_map : Dict[op,Callable] = {
|
|
124
125
|
op.ADD: np.ndarray.__add__,
|
|
125
126
|
op.SUB: np.ndarray.__sub__,
|
|
126
127
|
op.MUL: np.ndarray.__mul__,
|
|
@@ -7,7 +7,7 @@ import types
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from multiprocessing import Semaphore, Process
|
|
9
9
|
from multiprocessing.managers import SharedMemoryManager
|
|
10
|
-
from typing import Optional
|
|
10
|
+
from typing import Callable, Optional
|
|
11
11
|
|
|
12
12
|
import numpy as np
|
|
13
13
|
from osgeo import gdal
|
|
@@ -453,7 +453,7 @@ class LayerOperation(LayerMathMixin):
|
|
|
453
453
|
return lhs_data
|
|
454
454
|
|
|
455
455
|
try:
|
|
456
|
-
operator = backend.operator_map[self.operator]
|
|
456
|
+
operator: Callable = backend.operator_map[self.operator]
|
|
457
457
|
except KeyError:
|
|
458
458
|
# Handles things like `numpy_apply` where a custom operator is provided
|
|
459
459
|
operator = self.operator
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yirgacheffe
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Abstraction of gdal datasets for doing basic math operations
|
|
5
5
|
Author-email: Michael Dales <mwd24@cam.ac.uk>
|
|
6
6
|
License-Expression: ISC
|
|
@@ -13,6 +13,7 @@ Requires-Dist: numpy
|
|
|
13
13
|
Requires-Dist: gdal[numpy]
|
|
14
14
|
Requires-Dist: scikit-image
|
|
15
15
|
Requires-Dist: torch
|
|
16
|
+
Requires-Dist: dill
|
|
16
17
|
Provides-Extra: dev
|
|
17
18
|
Requires-Dist: mypy; extra == "dev"
|
|
18
19
|
Requires-Dist: pylint; extra == "dev"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|