Commit 975d5b99 authored by Sebastian Heimann's avatar Sebastian Heimann

refactor cleanup

parent aca1cef5
......@@ -25,7 +25,7 @@ class Analyser(object):
or iiter == niter - 1:
logger.info(
'%s at %i/%i (%s, %i/%i)' % (
'%s at %i/%i' % (
problem.name,
iiter, niter))
......@@ -58,7 +58,7 @@ class Analyser(object):
self._tlog_last = 0
for iiter in range(self.niter):
self.log_progress(iiter, self.niter)
self.log_progress(problem, iiter, self.niter)
while True:
x = []
for ipar in range(npar):
......
......@@ -127,7 +127,7 @@ class Problem(Object):
return [p.name for p in self.combined]
@property
def dependants_names(self):
def dependant_names(self):
return [p.name for p in self.dependants]
@property
......
......@@ -114,7 +114,7 @@ class CMTProblem(Problem):
for i, x in enumerate(xs):
k = tuple(x.tolist())
if k not in cache:
source = self.unpack(x)
source = self.get_source(x)
mt = source.pyrocko_moment_tensor()
res = mt.standard_decomposition()
sdrs = mt.both_strike_dip_rake()
......
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