Commit d686efa9 authored by Tim Keil's avatar Tim Keil

[parameters] fix Parameters.parse()

parent 14efaab1
Pipeline #61316 passed with stages
in 69 minutes and 53 seconds
......@@ -140,7 +140,7 @@ class Parameters(FrozenDict):
all(isinstance(v, Number) for v in mu) or fail('not every element a number')
len(mu) == sum(v for v in self.values()) or fail('wrong size')
parsed_mu = {}
for k, v in self.items():
for k, v in sorted(self.items()):
p, mu = mu[:v], mu[v:]
parsed_mu[k] = p
return Mu(parsed_mu)
......
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