From 7b0e60f0699bfbf0f81bd6552bee0f473614d627 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Tue, 13 Mar 2018 08:55:54 +0100 Subject: [PATCH] self is difficult to remember --- pubeval.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pubeval.py b/pubeval.py index b3d2c95..124c36a 100644 --- a/pubeval.py +++ b/pubeval.py @@ -42,11 +42,7 @@ class Pubeval: 0.00000, 3.42040 ] - - def pubeval(self, race, pos): - - if pos[26] == 15: - return 99999999.0 + def setx(self,pos): self.x = [0]*122 @@ -66,6 +62,13 @@ class Pubeval: self.x[5*jm1+4] = (n-3)/2.0 self.x[120] = -(pos[0]/2.0) self.x[121] = (pos[26]/15.0) + + def pubeval(self, race, pos): + + if pos[26] == 15: + return 99999999.0 + + self.setx(pos) score = 0.0 if race: