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.
Files changed (52) hide show
  1. {yirgacheffe-1.4.0/yirgacheffe.egg-info → yirgacheffe-1.4.1}/PKG-INFO +2 -1
  2. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/pyproject.toml +3 -2
  3. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/mlx.py +2 -1
  4. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/numpy.py +2 -1
  5. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/operators.py +2 -2
  6. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1/yirgacheffe.egg-info}/PKG-INFO +2 -1
  7. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/requires.txt +1 -0
  8. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/LICENSE +0 -0
  9. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/MANIFEST.in +0 -0
  10. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/README.md +0 -0
  11. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/setup.cfg +0 -0
  12. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_area.py +0 -0
  13. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_auto_windowing.py +0 -0
  14. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_base.py +0 -0
  15. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_constants.py +0 -0
  16. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_datatypes.py +0 -0
  17. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_group.py +0 -0
  18. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_h3layer.py +0 -0
  19. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_intersection.py +0 -0
  20. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_multiband.py +0 -0
  21. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_operators.py +0 -0
  22. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_optimisation.py +0 -0
  23. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_parallel_operators.py +0 -0
  24. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_pickle.py +0 -0
  25. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_raster.py +0 -0
  26. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_rescaling.py +0 -0
  27. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_rounding.py +0 -0
  28. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_save_with_window.py +0 -0
  29. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_sum_with_window.py +0 -0
  30. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_uniform_area_layer.py +0 -0
  31. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_union.py +0 -0
  32. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_vectors.py +0 -0
  33. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/tests/test_window.py +0 -0
  34. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/__init__.py +0 -0
  35. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/__init__.py +0 -0
  36. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/_backends/enumeration.py +0 -0
  37. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/constants.py +0 -0
  38. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/__init__.py +0 -0
  39. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/area.py +0 -0
  40. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/base.py +0 -0
  41. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/constant.py +0 -0
  42. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/group.py +0 -0
  43. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/h3layer.py +0 -0
  44. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/rasters.py +0 -0
  45. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/rescaled.py +0 -0
  46. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/layers/vectors.py +0 -0
  47. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/rounding.py +0 -0
  48. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe/window.py +0 -0
  49. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/SOURCES.txt +0 -0
  50. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/dependency_links.txt +0 -0
  51. {yirgacheffe-1.4.0 → yirgacheffe-1.4.1}/yirgacheffe.egg-info/entry_points.txt +0 -0
  52. {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.0
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.0"
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.0
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"
@@ -2,6 +2,7 @@ numpy
2
2
  gdal[numpy]
3
3
  scikit-image
4
4
  torch
5
+ dill
5
6
 
6
7
  [dev]
7
8
  mypy
File without changes
File without changes
File without changes
File without changes