Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Implements isclose for python 3.4 in unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavoudTaghawiNejad committed Sep 5, 2017
1 parent 065d761 commit 734ddfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unittest/start_logging_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import platform
import csv
import abce
from math import isclose
try:
from math import isclose
except ImportError:
def isclose(a, b):
return a - 0.000001 < b < a + 0.000001


class Agent(abce.Agent):
Expand Down

0 comments on commit 734ddfe

Please sign in to comment.