Skip to content

Commit

Permalink
Merge pull request #331 from ecmwf/develop
Browse files Browse the repository at this point in the history
v1.0.29
  • Loading branch information
mathleur authored Feb 24, 2025
2 parents b81d681 + 8c4c52c commit 78537b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ new_updated_numpy_venv
newest-polytope-venv
serializedTree
new_polytope_venv
*.json
*.json
venv_python3_11
5 changes: 4 additions & 1 deletion polytope_feature/datacube/backends/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ def get_mapper(self, axis):
"""
Get the type mapper for a subaxis of the datacube given by label
"""
return self._axes[axis]
ax = self._axes.get(axis, None)
if ax is None:
raise KeyError("The datacube does not contain a {} axis", axis)
return ax

def remap_path(self, path: DatacubePath):
for key in path:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1455,5 +1455,5 @@ def unmap(self, first_val, second_val):

# md5 grid hash in form {resolution : hash}
_md5_hash = {
320: "158db321ae8e773681eeb40e0a3d350f",
320: "00c7b107673deb45f968637b661ea25b",
}
2 changes: 1 addition & 1 deletion polytope_feature/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.28"
__version__ = "1.0.29"

0 comments on commit 78537b0

Please sign in to comment.