File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 90
90
cftime
91
91
rasterio
92
92
cfgrib
93
+ pooch
93
94
# # Scitools packages & dependencies (e.g: cartopy, cf-units) can be hard to install
94
95
# scitools-iris
95
96
Original file line number Diff line number Diff line change @@ -77,8 +77,11 @@ def open_dataset(
77
77
"""
78
78
try :
79
79
import pooch
80
- except ImportError :
81
- raise ImportError ("using the tutorial data requires pooch" )
80
+ except ImportError as e :
81
+ raise ImportError (
82
+ "tutorial.open_dataset depends on pooch to download and manage datasets."
83
+ " To proceed please install pooch."
84
+ ) from e
82
85
83
86
logger = pooch .get_logger ()
84
87
logger .setLevel ("WARNING" )
@@ -146,8 +149,11 @@ def open_rasterio(
146
149
"""
147
150
try :
148
151
import pooch
149
- except ImportError :
150
- raise ImportError ("using the tutorial data requires pooch" )
152
+ except ImportError as e :
153
+ raise ImportError (
154
+ "tutorial.open_rasterio depends on pooch to download and manage datasets."
155
+ " To proceed please install pooch."
156
+ ) from e
151
157
152
158
logger = pooch .get_logger ()
153
159
logger .setLevel ("WARNING" )
You can’t perform that action at this time.
0 commit comments