Skip to content

Commit

Permalink
Merge pull request #268 from vinisalazar/iris_error
Browse files Browse the repository at this point in the history
Improve exception handling in method to_iris
  • Loading branch information
ocefpaf authored Sep 20, 2022
2 parents 4e84e45 + e65ce9f commit 6057872
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ dependencies:
- python=3.9
- cartopy
- erddapy
- iris
- iris>=3.3.0
- jupyter
- netcdf4<1.6.1
- pendulum>=2.0.1
- xarray
2 changes: 1 addition & 1 deletion erddapy/erddapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def to_iris(self, **kw):
try:
cubes.realise_data()
except ValueError:
iris.cube.CubeList([cube.data for cube in cubes])
_ = [cube.data for cube in cubes]
return cubes

@functools.lru_cache(maxsize=None)
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ joblib
jupyter
mypy
nbsphinx
netcdf4
netcdf4<1.6.1
pendulum>=2.0.1
pooch
pre-commit
Expand Down

0 comments on commit 6057872

Please sign in to comment.