Skip to content

Commit

Permalink
fix : ABS_TOL set to 1E-12
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Nov 19, 2023
1 parent 6fce072 commit ceea739
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion opem/Test/test_Amphlett.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>>> from opem.Static.Amphlett import *
>>> import random
>>> import shutil
>>> ABS_TOL = 1e-16
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> T=343.15
>>> PH2=1
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Chakraborty.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> import os
>>> from math import isclose
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> Test_Vector=Chakraborty_Standard_Vector = {"T": 1273,"E0": 0.6,"u":0.8,"N0": 1,"R": 3.28125 * 10**(-3),"KH2O": 0.000281,"KH2": 0.000843,"KO2": 0.00252,"rho": 1.145,"i-start": 245,"i-stop": 250,"i-step": 0.1,"Name": "test1"}
>>> Chakraborty_Data=Dynamic_Analysis(InputMethod=Test_Vector, TestMode=True)
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Chamberline_Kim.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>>> n=9.45
>>> i=1
>>> A=50.0
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> assert isclose(Vcell_Calc(E0,b,R,m,n,i,A), 1.244827379954939, abs_tol=ABS_TOL, rel_tol=REL_TOL)
>>> Vcell_Calc(None,b,R,m,n,i,A)
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Larminie_Dicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> from math import isclose
>>> from opem.Static.Larminie_Dicks import *
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> E0=1.178
>>> A=0.0587
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Padulles1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> from math import isclose
>>> from opem.Dynamic.Padulles1 import *
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> Test_Vector={"T":343,"E0":0.6,"N0":88,"KO2":0.0000211,"KH2":0.0000422,"tH2":3.37,"tO2":6.74,"B":0.04777,"C":0.0136,"Rint":0.00303,"rho":1.168,"qH2":0.0004,"i-start":0,"i-stop":4,"i-step":0.1,"Name":"test1"}
>>> Padulles_I_Data=Dynamic_Analysis(InputMethod=Test_Vector, TestMode=True)
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Padulles2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> from math import isclose
>>> from opem.Dynamic.Padulles2 import *
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> Test_Vector={"T":343,"E0":0.6,"N0":5,"KO2":0.0000211,"KH2":0.0000422,"KH2O":0.000007716,"tH2":3.37,"tO2":6.74,"tH2O":18.418,"B":0.04777,"C":0.0136,"Rint":0.00303,"rho":1.168,"qH2":0.0004,"i-start":0.1,"i-stop":4,"i-step":0.1,"Name":"test1"}
>>> Padulles_II_Data=Dynamic_Analysis(InputMethod=Test_Vector, TestMode=True)
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Padulles_Amphlett.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> from math import isclose
>>> from opem.Dynamic.Padulles_Amphlett import *
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> Test_Vector={"A":50.6,"l":0.0178,"lambda":23,"JMax":1.5,"T":343,"N0":5,"KO2":0.0000211,"KH2":0.0000422,"KH2O":0.000007716,"tH2":3.37,"tO2":6.74,"t1":2,"t2":2,"tH2O":18.418,"rho":1.168,"qMethanol":0.0002,"CV":2,"i-start":0.1,"i-stop":4,"i-step":0.1,"Name":"test1"}
>>> Padulles_Amphlett_Data=Dynamic_Analysis(InputMethod=Test_Vector, TestMode=True)
Expand Down
2 changes: 1 addition & 1 deletion opem/Test/test_Padulles_Hauer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>>> from math import isclose
>>> from opem.Dynamic.Padulles_Hauer import *
>>> import shutil
>>> ABS_TOL = 1e-7
>>> ABS_TOL = 1e-12
>>> REL_TOL = 0
>>> Test_Vector={"T":343,"E0":0.6,"N0":5,"KO2":0.0000211,"KH2":0.0000422,"KH2O":0.000007716,"tH2":3.37,"tO2":6.74,"t1":2,"t2":2,"tH2O":18.418,"B":0.04777,"C":0.0136,"Rint":0.00303,"rho":1.168,"qMethanol":0.0002,"CV":2,"i-start":0.1,"i-stop":4,"i-step":0.1,"Name":"test1"}
>>> Padulles_Hauer_Data=Dynamic_Analysis(InputMethod=Test_Vector, TestMode=True)
Expand Down

0 comments on commit ceea739

Please sign in to comment.