Skip to content

Commit 3856250

Browse files
authored
print rp from self rather than self.sim
if this is not done then it will crash if a Pyro object is loaded in jupyter and immediately printed without being initialized
1 parent b97acb9 commit 3856250

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __repr__(self):
224224
s += "Simulation step number = {}\n".format(self.sim.n)
225225
s += "\nRuntime Parameters"
226226
s += "\n------------------\n"
227-
s += str(self.sim.rp)
227+
s += str(self.rp)
228228
return s
229229

230230
def get_var(self, v):

0 commit comments

Comments
 (0)