Commit a3f71d43 authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

bugfixes

parent 8d6a19e2
......@@ -456,7 +456,15 @@ def check(
else:
for i in range(n_random_synthetics):
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)
......
......@@ -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):
......
Supports Markdown
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