fix field reference in the PiLog.hit property

This commit is contained in:
Brian S. Stephan 2020-10-24 23:58:02 -05:00
parent 691ee7696b
commit ef08cec0fb
1 changed files with 1 additions and 1 deletions

View File

@ -66,4 +66,4 @@ class PiLog(models.Model):
@property
def hit(self):
"""Return if this log entry is inside the unit circle."""
return math.hypot(self.simulation_x, self.simulation.y) < 1
return math.hypot(self.simulation_x, self.simulation_y) < 1