Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann committed Jan 9, 2019
1 parent c3f2dde commit fd31b00
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eggshell/plot/plt_ncdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import matplotlib.patches as mpatches
import cartopy.crs as ccrs

from cartopy.util import add_cyclic_point
from eggshell.nc.calculation import fieldmean
from eggshell.nc.nc_utils import get_variable, get_frequency, get_coordinates
from eggshell.nc.nc_utils import get_time, sort_by_filename
Expand Down Expand Up @@ -238,7 +237,6 @@ def map_spatial_analog(ncfile, variable='dissimilarity', cmap='viridis', title='
import matplotlib.axes as maxes
from cartopy.util import add_cyclic_point


try:
var = nc_utils.get_values(ncfile, variable)
LOGGER.info('Data loaded')
Expand Down Expand Up @@ -287,8 +285,8 @@ def map_spatial_analog(ncfile, variable='dissimilarity', cmap='viridis', title='
cb.set_label(u"– Dissimilarity +") # ha='left', va='center')
cb.set_ticks([])

except:
msg = 'failed to plot graphic'
except Exception as ex:
msg = 'failed to plot graphic {}'.format(ex)
LOGGER.exception(msg)

LOGGER.info('Plot created and figure saved')
Expand Down

0 comments on commit fd31b00

Please sign in to comment.