-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb70092
commit cc7ed7f
Showing
3 changed files
with
116 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from typing import List | ||
|
||
|
||
class Phreeqc: | ||
def __init__(self) -> None: | ||
""" | ||
Create a Phreeqc instance. | ||
""" | ||
... | ||
|
||
def get_selected_output_string(self) -> str: ... | ||
|
||
def load_database(self, path: str) -> None: | ||
""" | ||
Load the specified database file into phreeqc. | ||
:param path: The path of the phreeqc database to load. The full path (or relative path \ | ||
with respect to the working directory) will be required if the file is not in the current working directory | ||
""" | ||
... | ||
|
||
def run_file(self, path: str) -> None: | ||
""" | ||
Runs the specified phreeqc input file. | ||
:param path: The path of the phreeqc input file to run. | ||
""" | ||
... | ||
|
||
def run_string(self, input: str) -> None: | ||
""" | ||
Runs the specified string as input to phreeqc. | ||
:param input: String containing phreeqc input. | ||
""" | ||
... | ||
|
||
def get_selected_output(self) -> List[List]: | ||
""" | ||
Get the selected output. | ||
:return: A 2d-array consisting of each row from the selected output | ||
""" | ||
... |
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