From ef08cec0fb610de75ee8b92e05e435726d2224a8 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 24 Oct 2020 23:58:02 -0500 Subject: [PATCH] fix field reference in the PiLog.hit property --- pi/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pi/models.py b/pi/models.py index 210d8d9..fbdf6c6 100644 --- a/pi/models.py +++ b/pi/models.py @@ -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