Commit c732cbf7 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix syntax error with Python 2

parent 7bdf4c13
Pipeline #473 failed with stage
in 791 minutes and 50 seconds
......@@ -1008,7 +1008,7 @@ class EpidemicsBlockState(DynamicsBlockStateBase):
beta = state.pop("beta", None)
if "x" not in state:
state["global_beta"] = beta
self.__init__(**state, beta=beta)
self.__init__(**dict(state, beta=beta))
def copy(self, **kwargs):
"""Return a copy of the state."""
......@@ -1206,7 +1206,7 @@ class IsingBaseBlockState(DynamicsBlockStateBase):
beta = state.pop("beta", None)
if "x" not in state:
state["x"] = 1
self.__init__(**state, beta=beta)
self.__init__(**dict(state, beta=beta))
def get_x(self):
"""Return edge couplings."""
......
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