Commit 8387245a authored by Marius Isken's avatar Marius Isken
Browse files

Fixes to adaptive parameters

parent 74b7a69e
......@@ -70,7 +70,11 @@ class Problem(Object):
return ADict(params)
def get_parameter_array(self, d):
return num.array([d[] for p in self.parameters], dtype=num.float)
arr = num.zeros(self.nparameters, dtype=num.float)
for ip, p in enumerate(self.parameters):
if in d.keys():
arr[ip] = d[]
return arr
def dump_problem_info(self, dirname):
fn = op.join(dirname, 'problem.yaml')
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