From c426d6209420d74f1bc7c740260282f06c031e22 Mon Sep 17 00:00:00 2001 From: Co-D <107580869+Chrynko@users.noreply.github.com> Date: Tue, 25 Feb 2025 19:53:09 -0500 Subject: [PATCH 1/3] Update antoine.py Added type hinting and formatted comments into doc string --- antoine.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/antoine.py b/antoine.py index 68068c4..6c39220 100644 --- a/antoine.py +++ b/antoine.py @@ -1,4 +1,5 @@ -def antoine( a, T): +def antoine( a: float, T: float) -> float: + ''' # Ps = antoine( a, T) # # Uses Antoine's equation to obtain the vapor pressure of a substance given @@ -21,6 +22,6 @@ def antoine( a, T): # Code originally by: James C. Sutherland # Modified by: Tyler R. Josephson # Changed comment - + ''' Ps = 10.0**( a[:,0] - a[:,1] / ( a[:,2] + T ) ) return Ps From ba8fe5b4a0cfefa6fad4fca54984f67cf0cef3ff Mon Sep 17 00:00:00 2001 From: Co-D <107580869+Chrynko@users.noreply.github.com> Date: Tue, 25 Feb 2025 20:15:14 -0500 Subject: [PATCH 2/3] Update antoine.py --- antoine.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/antoine.py b/antoine.py index 6c39220..68068c4 100644 --- a/antoine.py +++ b/antoine.py @@ -1,5 +1,4 @@ -def antoine( a: float, T: float) -> float: - ''' +def antoine( a, T): # Ps = antoine( a, T) # # Uses Antoine's equation to obtain the vapor pressure of a substance given @@ -22,6 +21,6 @@ def antoine( a: float, T: float) -> float: # Code originally by: James C. Sutherland # Modified by: Tyler R. Josephson # Changed comment - ''' + Ps = 10.0**( a[:,0] - a[:,1] / ( a[:,2] + T ) ) return Ps From 3c68b4e76682a7337daeda071b34d16a1a79b737 Mon Sep 17 00:00:00 2001 From: Co-D <107580869+Chrynko@users.noreply.github.com> Date: Tue, 25 Feb 2025 20:15:35 -0500 Subject: [PATCH 3/3] Update antoine.py --- antoine.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/antoine.py b/antoine.py index 68068c4..6c39220 100644 --- a/antoine.py +++ b/antoine.py @@ -1,4 +1,5 @@ -def antoine( a, T): +def antoine( a: float, T: float) -> float: + ''' # Ps = antoine( a, T) # # Uses Antoine's equation to obtain the vapor pressure of a substance given @@ -21,6 +22,6 @@ def antoine( a, T): # Code originally by: James C. Sutherland # Modified by: Tyler R. Josephson # Changed comment - + ''' Ps = 10.0**( a[:,0] - a[:,1] / ( a[:,2] + T ) ) return Ps