fix field reference in the PiLog.hit property
This commit is contained in:
@@ -66,4 +66,4 @@ class PiLog(models.Model):
|
|||||||
@property
|
@property
|
||||||
def hit(self):
|
def hit(self):
|
||||||
"""Return if this log entry is inside the unit circle."""
|
"""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
|
||||||
|
|||||||
Reference in New Issue
Block a user