From c751dcc2f5831322b5ffb0e91646a1e0e91075b0 Mon Sep 17 00:00:00 2001 From: hhanma Date: Wed, 4 Mar 2026 13:19:00 -0500 Subject: [PATCH 1/5] Update antoine.py --- antoine.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/antoine.py b/antoine.py index 68068c4..037042b 100644 --- a/antoine.py +++ b/antoine.py @@ -1,3 +1,6 @@ +import numpy as np +# change number 1 + def antoine( a, T): # Ps = antoine( a, T) # @@ -22,5 +25,9 @@ def antoine( a, T): # Modified by: Tyler R. Josephson # Changed comment + a=np.asarray(a,dtype=float) + T=np.asarray(T, dtype=float) + # change number 2, making a and T into arrays + Ps = 10.0**( a[:,0] - a[:,1] / ( a[:,2] + T ) ) return Ps From 248785a5a4083c263c23afc14a9c321fa02e2909 Mon Sep 17 00:00:00 2001 From: psesay1 Date: Wed, 4 Mar 2026 20:17:12 -0500 Subject: [PATCH 2/5] Update antoine.py Switched the data to be integers instead of floats --- antoine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antoine.py b/antoine.py index 037042b..55e7cc0 100644 --- a/antoine.py +++ b/antoine.py @@ -25,8 +25,8 @@ def antoine( a, T): # Modified by: Tyler R. Josephson # Changed comment - a=np.asarray(a,dtype=float) - T=np.asarray(T, dtype=float) + a=np.asarray(a,dtype=int) + T=np.asarray(T, dtype=int) # change number 2, making a and T into arrays Ps = 10.0**( a[:,0] - a[:,1] / ( a[:,2] + T ) ) From 8fa7226b3bdc58b4b77f2612fa291430be886ae5 Mon Sep 17 00:00:00 2001 From: psesay1 Date: Wed, 4 Mar 2026 20:37:49 -0500 Subject: [PATCH 3/5] Update antoine.py Changed line 1 to say np.numpy --- antoine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antoine.py b/antoine.py index 55e7cc0..da285d0 100644 --- a/antoine.py +++ b/antoine.py @@ -1,4 +1,4 @@ -import numpy as np +import numpy as np.numpy # change number 1 def antoine( a, T): From 95f74258b4af9b2c9b3abd91749941d3d2e2babd Mon Sep 17 00:00:00 2001 From: ShashaneA <142996982+ShashaneA@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:43:39 -0500 Subject: [PATCH 4/5] Update antoine.py Conflict test --- antoine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antoine.py b/antoine.py index 037042b..0c11432 100644 --- a/antoine.py +++ b/antoine.py @@ -1,4 +1,4 @@ -import numpy as np +import numpy as npnp # change number 1 def antoine( a, T): From a13ced84a040b8556c2ae1783574da80090cf3ba Mon Sep 17 00:00:00 2001 From: ShashaneA <142996982+ShashaneA@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:02:27 -0500 Subject: [PATCH 5/5] Update raoult_law_kvalue.py Modified a comment in raoult_law_kvalue.py --- raoult_law_kvalue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raoult_law_kvalue.py b/raoult_law_kvalue.py index 4bff56e..cbea295 100644 --- a/raoult_law_kvalue.py +++ b/raoult_law_kvalue.py @@ -1,7 +1,7 @@ from antoine import antoine import numpy as np -def raoult_law_kvalue( T, P, a, *gamma): +def raoult_law_kvalue( T, P, a, * gamma): # Calculates the equilibrium coefficient from Raoult's law # INPUTS: # @@ -31,7 +31,7 @@ def raoult_law_kvalue( T, P, a, *gamma): ns,nc = a.shape # makes np array of zeros - K = np.zeros(ns) + K = np.zeros(ns) # This line initializes K values Ps = antoine(a, T) K = Ps/P if gamma: