-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Added python module wrappers for C extensions.
- Loading branch information
1 parent
035f6fe
commit 06a9857
Showing
7 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""IAPWS G704.""" | ||
import numpy as np | ||
from . import g704_ | ||
from .g704_ import kd, gases, gases2, ngases | ||
|
||
|
||
def kh(T: np.ndarray, gas: str, heavywater: bool = False): | ||
""" | ||
Get the Henry constant for gas in H2O or D2O for T. | ||
If gas not found returns NaNs. | ||
Parameters | ||
---------- | ||
T: 1d-array of floats. | ||
Temperature in °C. | ||
gas: str | ||
Gas. | ||
heavywater: bool | ||
Flag for indicating if solvent is heavywater (True) or water (False). | ||
Default to False. | ||
""" | ||
return g704_.kh(T, gas, heavywater) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"""IAPWS R283""" | ||
from .r283_ import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"""IAPWS R797""" | ||
from .r797_ import * |