Browse Source

Update kb.py

pull/3/head
troyyyyy GitHub 3 years ago
parent
commit
5224c86035
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      abducer/kb.py

+ 1
- 1
abducer/kb.py View File

@@ -134,7 +134,7 @@ class hwf_KB(ClsKB):
if(self.valid_formula(formula) == False):
return np.inf
try:
return eval(''.join(formula))
return round(eval(''.join(formula)), 2)
except ZeroDivisionError:
return np.inf


Loading…
Cancel
Save