Skip to content

Commit

Permalink
Update test_other_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
toruseo committed Feb 7, 2025
1 parent 2e10594 commit 2b62612
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_other_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
from uxsim.Utilities import *


def equal_tolerance(val, check, rel_tol=0.1, abs_tol=0.0):
if check == 0 and abs_tol == 0:
abs_tol = 0.1
return abs(val - check) <= abs(check*rel_tol) + abs_tol

def test_analyzer():
import matplotlib
Expand Down Expand Up @@ -1188,5 +1184,5 @@ def test_construct_time_space_network():

construct_time_space_network(W)

assert W.TSN_paths["4", 0]["7", "end"][-2] == ('7', 320)
assert W.TSN_paths["4", 0]["7", "end"][-2] == ('7', 340)
assert equal_tolerance(W.TSN_costs["4", 0]["7", "end"], W.TSN_paths["4", 0]["7", "end"][-2][1])

0 comments on commit 2b62612

Please sign in to comment.