Skip to content

Commit 1cd8ed7

Browse files
authored
Merge pull request #339 from ecmwf/develop
v1.0.31
2 parents 3251c05 + 64eb500 commit 1cd8ed7

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ jobs:
152152
- name: Install dependencies
153153
run: |
154154
python -m pip install --upgrade pip
155-
pip install setuptools wheel twine
155+
pip install build twine
156156
- name: Build and publish
157157
env:
158158
TWINE_USERNAME: "__token__"
159159
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
160160
run: |
161-
python setup.py sdist
161+
python -m build
162162
twine upload dist/*

polytope_feature/datacube/backends/fdb.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from copy import deepcopy
44
from itertools import product
55

6-
from ...utility.exceptions import BadGridError, BadRequestError
6+
from ...utility.exceptions import BadGridError, BadRequestError, GribJumpNoIndexError
77
from ...utility.geometry import nearest_pt
88
from .datacube import Datacube, TensorIndexTree
99

@@ -145,6 +145,9 @@ def get(self, requests: TensorIndexTree, context=None):
145145
if "BadValue: Grid hash mismatch" in str(e):
146146
logging.info("Error is: %s", e)
147147
raise BadGridError()
148+
if "Missing JumpInfo" in str(e):
149+
logging.info("Error is: %s", e)
150+
raise GribJumpNoIndexError()
148151
else:
149152
raise e
150153

polytope_feature/utility/exceptions.py

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ def __init__(self, axis):
3838
class BadGridError(PolytopeError, ValueError):
3939
def __init__(self):
4040
self.message = "Data on this grid is not supported by Polytope."
41+
42+
43+
class GribJumpNoIndexError(PolytopeError, ValueError):
44+
def __init__(self):
45+
self.message = "GribJump index for this data was not yet written."

polytope_feature/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.30"
1+
__version__ = "1.0.31"

0 commit comments

Comments
 (0)