Commit 7268e361 authored by Marius Isken's avatar Marius Isken
Browse files

RectangularProblem time dep

parent c4042471
......@@ -266,7 +266,6 @@ def analyse(problem, niter=1000, show_progress=False):
xbounds = num.array(wproblem.get_parameter_bounds(), dtype=num.float)
npar = xbounds.shape[0]
print wproblem.ntargets, problem.ntargets
mss = num.zeros((niter, wproblem.ntargets))
rstate = num.random.RandomState(123)
......
......@@ -731,14 +731,9 @@ class RectangularProblem(Problem):
def get_source(self, x):
d = self.get_parameter_dict(x)
p = {}
for k in self.base_source.keys():
if k in d:
p[k] = float(
self.ranges[k].make_relative(self.base_source[k], d[k]))
source = self.base_source.clone(**p)
if 'time' in d.keys():
d['time'] += self.base_source['time']
source = self.base_source.clone(**d)
return source
def extract(self, xs, i):
......
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