Skip to content
GitLab
Menu
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
a3f71d43
Commit
a3f71d43
authored
Nov 23, 2017
by
Sebastian Heimann
Browse files
bugfixes
parent
8d6a19e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
a3f71d43
...
...
@@ -456,7 +456,15 @@ def check(
else
:
for
i
in
range
(
n_random_synthetics
):
x
=
problem
.
random_uniform
(
xbounds
)
while
True
:
x
=
problem
.
random_uniform
(
xbounds
)
try
:
x
=
problem
.
preconstrain
(
x
)
break
except
Forbidden
:
pass
sources
.
append
(
problem
.
get_source
(
x
))
ms
,
ns
,
results
=
problem
.
evaluate
(
x
,
result_mode
=
'full'
)
results_list
.
append
(
results
)
...
...
src/targets/waveform.py
View file @
a3f71d43
...
...
@@ -218,7 +218,7 @@ class WaveformMisfitTarget(gf.Target, MisfitTarget):
nmisfits
=
1
def
string_id
(
self
):
return
'.'
.
join
(
x
for
x
in
(
self
.
path
)
+
self
.
codes
if
x
)
return
'.'
.
join
(
x
for
x
in
(
self
.
path
,
)
+
self
.
codes
if
x
)
@
property
def
id
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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