Skip to content

Improve exception handling in method to_iris #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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