Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
grond
Commits
efa9a343
Commit
efa9a343
authored
Jun 21, 2016
by
Sebastian Heimann
Browse files
change errors in beachball plotting in hudson plot into warnings
parent
7ce58940
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plot.py
View file @
efa9a343
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment