Skip to content

Commit

Permalink
make optional the import of cartopy at wmf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas998 committed Jan 30, 2020
1 parent 84793f1 commit 7e56697
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wmf/wmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
import datetime as datetime
from multiprocessing import Pool
import matplotlib.path as mplPath
import cartopy.crs as ccrs
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
try:
import cartopy.crs as ccrs
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
except:
print('no cartopy')
import matplotlib.ticker as mticker
from mpl_toolkits.axes_grid1 import make_axes_locatable

try:
import osgeo.ogr, osgeo.osr
import gdal
Expand Down

0 comments on commit 7e56697

Please sign in to comment.