Commit efa9a343 authored by Sebastian Heimann's avatar Sebastian Heimann

change errors in beachball plotting in hudson plot into warnings

parent 7ce58940
......@@ -1365,14 +1365,17 @@ def draw_hudson_figure(model, plt):
mt = mean_source.pyrocko_moment_tensor()
u, v = hudson.project(mt)
beachball.plot_beachball_mpl(
mt, axes,
beachball_type='dc',
position=(u, v),
size=beachballsize,
color_t=color,
zorder=2,
linewidth=0.5)
try:
beachball.plot_beachball_mpl(
mt, axes,
beachball_type='dc',
position=(u, v),
size=beachballsize,
color_t=color,
zorder=2,
linewidth=0.5)
except beachball.BeachballError, e:
logger.warn(str(e))
mt = best_source.pyrocko_moment_tensor()
u, v = hudson.project(mt)
......@@ -1388,14 +1391,17 @@ def draw_hudson_figure(model, plt):
mt = problem.base_source.pyrocko_moment_tensor()
u, v = hudson.project(mt)
beachball.plot_beachball_mpl(
mt, axes,
beachball_type='dc',
position=(u, v),
size=beachballsize,
color_t='red',
zorder=2,
linewidth=0.5)
try:
beachball.plot_beachball_mpl(
mt, axes,
beachball_type='dc',
position=(u, v),
size=beachballsize,
color_t='red',
zorder=2,
linewidth=0.5)
except beachball.BeachballError, e:
logger.warn(str(e))
return [fig]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment