Skip to content

Commit b88beea

Browse files
committed
Try and except test on the import of xesmf 3
1 parent 6d80dfd commit b88beea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lenapy/lenapy_geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
try:
1111
import xesmf as xe
1212
except ModuleNotFoundError:
13-
raise warnings.warn(
13+
warnings.warn(
1414
"Warning: No module named 'ESMF', often due to installation with pip instead of conda for the xesmf lib."
1515
"You can try to manually set up the ESMFMKFILE global variable with os.environ() function to solve"
1616
"this issue."

lenapy/readers/geo_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try:
1212
import xesmf as xe
1313
except ModuleNotFoundError:
14-
raise warnings.warn(
14+
warnings.warn(
1515
"Warning: No module named 'ESMF', often due to installation with pip instead of conda for the xesmf lib."
1616
"You can try to manually set up the ESMFMKFILE global variable with os.environ() function to solve"
1717
"this issue."

0 commit comments

Comments
 (0)