Commit 68b29d1a authored by William Clarke's avatar William Clarke
Browse files

Better init for fixed paramerters in variable mapping.

parent 7d7a1bce
......@@ -308,7 +308,7 @@ class VariableMapping(object):
for index, name in enumerate(self.mapped_names):
psize = self.mapped_sizes[index]
if (self.Parameters[name] == 'fixed'):
free_params[counter:counter + psize] = p[0, index]
free_params[counter:counter + psize] = np.median(np.stack(p[:, index]), axis=0)
counter += psize
elif (self.Parameters[name] == 'variable'):
for t in range(self.ntimes):
......
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