polytope-python 1.0.28__tar.gz → 1.0.30__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 (58) hide show
  1. {polytope-python-1.0.28/polytope_python.egg-info → polytope-python-1.0.30}/PKG-INFO +1 -1
  2. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/backends/datacube.py +4 -1
  3. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/reduced_gaussian.py +2 -2
  4. polytope-python-1.0.30/polytope_feature/version.py +1 -0
  5. {polytope-python-1.0.28 → polytope-python-1.0.30/polytope_python.egg-info}/PKG-INFO +1 -1
  6. polytope-python-1.0.28/polytope_feature/version.py +0 -1
  7. {polytope-python-1.0.28 → polytope-python-1.0.30}/LICENSE +0 -0
  8. {polytope-python-1.0.28 → polytope-python-1.0.30}/MANIFEST.in +0 -0
  9. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/__init__.py +0 -0
  10. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/__init__.py +0 -0
  11. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/backends/__init__.py +0 -0
  12. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/backends/fdb.py +0 -0
  13. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/backends/mock.py +0 -0
  14. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/backends/xarray.py +0 -0
  15. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/datacube_axis.py +0 -0
  16. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/index_tree_pb2.py +0 -0
  17. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/tensor_index_tree.py +0 -0
  18. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/__init__.py +0 -0
  19. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_cyclic/__init__.py +0 -0
  20. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_cyclic/datacube_cyclic.py +0 -0
  21. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/__init__.py +0 -0
  22. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/datacube_mappers.py +0 -0
  23. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/__init__.py +0 -0
  24. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/healpix.py +0 -0
  25. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/healpix_nested.py +0 -0
  26. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/local_regular.py +0 -0
  27. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/octahedral.py +0 -0
  28. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/reduced_ll.py +0 -0
  29. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_mappers/mapper_types/regular.py +0 -0
  30. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_merger/__init__.py +0 -0
  31. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_merger/datacube_merger.py +0 -0
  32. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_reverse/__init__.py +0 -0
  33. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_reverse/datacube_reverse.py +0 -0
  34. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_transformations.py +0 -0
  35. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_type_change/__init__.py +0 -0
  36. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/transformations/datacube_type_change/datacube_type_change.py +0 -0
  37. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/datacube/tree_encoding.py +0 -0
  38. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/engine/__init__.py +0 -0
  39. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/engine/engine.py +0 -0
  40. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/engine/hullslicer.py +0 -0
  41. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/options.py +0 -0
  42. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/polytope.py +0 -0
  43. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/shapes.py +0 -0
  44. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/__init__.py +0 -0
  45. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/combinatorics.py +0 -0
  46. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/exceptions.py +0 -0
  47. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/geometry.py +0 -0
  48. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/list_tools.py +0 -0
  49. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_feature/utility/profiling.py +0 -0
  50. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_python.egg-info/SOURCES.txt +0 -0
  51. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_python.egg-info/dependency_links.txt +0 -0
  52. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_python.egg-info/not-zip-safe +0 -0
  53. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_python.egg-info/requires.txt +0 -0
  54. {polytope-python-1.0.28 → polytope-python-1.0.30}/polytope_python.egg-info/top_level.txt +0 -0
  55. {polytope-python-1.0.28 → polytope-python-1.0.30}/pyproject.toml +0 -0
  56. {polytope-python-1.0.28 → polytope-python-1.0.30}/requirements.txt +0 -0
  57. {polytope-python-1.0.28 → polytope-python-1.0.30}/setup.cfg +0 -0
  58. {polytope-python-1.0.28 → polytope-python-1.0.30}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: polytope-python
3
- Version: 1.0.28
3
+ Version: 1.0.30
4
4
  Summary: Polytope datacube feature extraction library
5
5
  Home-page: https://github.com/ecmwf/polytope
6
6
  Author: ECMWF
@@ -140,7 +140,10 @@ class Datacube(ABC):
140
140
  """
141
141
  Get the type mapper for a subaxis of the datacube given by label
142
142
  """
143
- return self._axes[axis]
143
+ ax = self._axes.get(axis, None)
144
+ if ax is None:
145
+ raise KeyError("The datacube does not contain a {} axis", axis)
146
+ return ax
144
147
 
145
148
  def remap_path(self, path: DatacubePath):
146
149
  for key in path:
@@ -1425,7 +1425,7 @@ class ReducedGaussianGridMapper(DatacubeMapper):
1425
1425
  def axes_idx_to_reduced_gaussian_idx(self, first_idx, second_idx):
1426
1426
  Ny_array = self.lon_spacing()
1427
1427
  idx = 0
1428
- for i in range(self._resolution):
1428
+ for i in range(len(Ny_array)):
1429
1429
  if i != first_idx:
1430
1430
  idx += Ny_array[i]
1431
1431
  else:
@@ -1455,5 +1455,5 @@ class ReducedGaussianGridMapper(DatacubeMapper):
1455
1455
 
1456
1456
  # md5 grid hash in form {resolution : hash}
1457
1457
  _md5_hash = {
1458
- 320: "158db321ae8e773681eeb40e0a3d350f",
1458
+ 320: "00c7b107673deb45f968637b661ea25b",
1459
1459
  }
@@ -0,0 +1 @@
1
+ __version__ = "1.0.30"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: polytope-python
3
- Version: 1.0.28
3
+ Version: 1.0.30
4
4
  Summary: Polytope datacube feature extraction library
5
5
  Home-page: https://github.com/ecmwf/polytope
6
6
  Author: ECMWF
@@ -1 +0,0 @@
1
- __version__ = "1.0.28"