-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix typo in README (#4) * modflowapi interface (#8) * update package: manual variable address assembly updated to use xmipy get_variable_addr() * update additional manual variable address assembly statements * Refactor code and added functionality: * add stress_period_start, stress_period_end Callbacks * fix ApiModel __repr__ * added Exchanges, TDIS, ATS, and SLN support * added ScalarInput and ScalarPackage support * update autotests * added parallel testing support through pytest-xdist * updated markers and split the extensions tests from the mf6 examples tests * added a test for ATS * update setup.cfg * update ci.yml * update(ListInput): add auxvar to stress_period_data when auxiliary variables are used * Allow None to be passed to stress_period_data.values to disable stresses for a package * updates: ApiModel, ApiSimulation, run_simulation * added a `totim` property on `ApiSimulation` and `ApiModel` * added docstrings to ApiModel property methods * updated termination message in run_simulation * added a finalize callback to Callbacks and run_simulation * add support for AUXNAME_CST * add(Head Monitor Example): Add a head monitor example application * ApiModel: adjust X based on nodetouser * ApiPackage: enforce lower cased variable names in get_advanced_var * ArrayPointer: trap for arrays that are not adjusted by reduced node numbers (ex. idomain) * update setup.cfg * try reformatting the xmipy installation instructions * fix(get value): fixed error handling when modflowapi fails to get a pointer to a value from the API (#9) Co-authored-by: scottrp <45947939+scottrp@users.noreply.github.com> * update(rhs, hcof, AdvancedInput): bug fixes for setting variable values for advanced inputs * update rhs and hcof to copy values to pointer instead of overwriting the pointer * add a check for AdvancedInput variables that do not have pointer support in xmipy * update setting routine for AdvancedInput * refactor(EOL): change CRLF to LF line endings for source files (#12) * Use pyproject.toml for project metadata, add citation info (#11) * add(test_rhs_hcof_advanced): add additional test (#13) * added test for getting and setting rhs, hcof, and advanced variable values * update project to use unix line separators * use np.testing.assert_allclose() instead of AssertionError * Add missing RIV support to modflowapi (#16) * add(test_rhs_hcof_advanced): add additional test * added test for getting and setting rhs, hcof, and advanced variable values * update project to use unix line separators * use np.testing.assert_allclose() instead of AssertionError * Add missing riv package to modflowapi * release: v0.1.0 --------- Co-authored-by: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Co-authored-by: Joshua Larsen <jlarsen@usgs.gov> Co-authored-by: spaulins-usgs <spaulinski@usgs.gov> Co-authored-by: scottrp <45947939+scottrp@users.noreply.github.com> Co-authored-by: Mike Taves <mwtoews@gmail.com>
- Loading branch information
1 parent
612dd11
commit 400780e
Showing
100 changed files
with
9,065 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
cff-version: 1.2.0 | ||
message: If you use this software, please cite both the article from preferred-citation | ||
and the software itself. | ||
type: software | ||
title: MODFLOW API | ||
version: 0.1.0 | ||
date-released: '2023-04-19' | ||
abstract: An extension to xmipy for the MODFLOW API. | ||
repository-artifact: https://pypi.org/project/modflowapi | ||
repository-code: https://github.com/MODFLOW-USGS/modflowapi | ||
license: CC0-1.0 | ||
authors: | ||
- family-names: Hughes | ||
given-names: Joseph D. | ||
alias: jdhughes-usgs | ||
affiliation: U.S. Geological Survey | ||
orcid: https://orcid.org/0000-0003-1311-2354 | ||
- family-names: Russcher | ||
given-names: Martijn | ||
alias: mjr-deltares | ||
affiliation: Deltares | ||
orcid: https://orcid.org/0000-0001-8799-6514 | ||
- family-names: Langevin | ||
given-names: Christian D. | ||
alias: langevin-usgs | ||
affiliation: U.S. Geological Survey | ||
orcid: https://orcid.org/0000-0001-5610-9759 | ||
- family-names: Hofer | ||
given-names: Julian | ||
alias: Hofer-Julian | ||
affiliation: Deltares | ||
- family-names: Larsen | ||
given-names: Joshua D. | ||
alias: jlarsen-usgs | ||
affiliation: U.S. Geological Survey | ||
orcid: https://orcid.org/0000-0002-1218-800X | ||
preferred-citation: | ||
type: article | ||
authors: | ||
- family-names: Hughes | ||
given-names: Joseph D. | ||
orcid: https://orcid.org/0000-0003-1311-2354 | ||
- family-names: Russcher | ||
given-names: Martijn J. | ||
orcid: https://orcid.org/0000-0001-8799-6514 | ||
- family-names: Langevin | ||
given-names: Christian D. | ||
orcid: https://orcid.org/0000-0001-5610-9759 | ||
- family-names: Morway | ||
given-names: Eric D. | ||
orcid: https://orcid.org/0000-0002-8553-6140 | ||
- family-names: McDonald | ||
given-names: Richard R. | ||
orcid: https://orcid.org/0000-0002-0703-0638 | ||
title: The MODFLOW Application Programming Interface for simulation control and software interoperability | ||
doi: 10.1016/j.envsoft.2021.105257 | ||
journal: Environmental Modelling & Software | ||
volume: 138 | ||
start: 105257 | ||
year: 2022 | ||
month: 2 |
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
# modflowapi | ||
|
||
`modflowapi` is an extension to [xmiipy](https://pypi.org/project/xmipy/) for the MODFLOW API. | ||
`modflowapi` is an extension to [xmipy](https://pypi.org/project/xmipy/) for the MODFLOW API. | ||
|
||
The `modflowapi` can be used to access functionality in the eXtended Model Interface (XMI) wrapper (XmiWrapper) | ||
and additional functionality specific to the MODFLOW API. Currently it is a joint development of the USGS and Deltares. | ||
|
||
Use of modflowapi and modflowapi extensions can be found in the [Quickstart](examples/notebooks/Quickstart.ipynb) and the [Extensions](examples/notebooks/MODFLOW-API_extensions_objects.ipynb) Notebooks. An example of using the MODFLOW API to monitor heads during a simulation can be found in the [Head Monitor Example](examples/notebooks/Head_Monitor_Example.ipynb) Notebook. | ||
|
||
The `modflowapi` can be used to access functionality in the eXtended Model Interface (XMI) wrapper (XmiWrapper) and additional functionality specific to the MODFLOW API. Currently it is a joint development of the USGS and Deltares. | ||
|
||
`modflowapi` can be installed by running | ||
|
||
``` | ||
pip install modflowapi | ||
``` | ||
``` | ||
|
||
or | ||
|
||
``` | ||
conda install -c conda-forge modflowapi | ||
``` | ||
|
||
### Citation | ||
|
||
Hughes, Joseph D., Russcher, M. J., Langevin, C. D., Morway, E. D. and McDonald, R. R., 2022, The MODFLOW Application Programming Interface for simulationcontrol and software interoperability: Environmental Modelling & Software, v. 148, p. 105257, [doi:10.1016/j.envsoft.2021.105257](https://doi.org/10.1016/j.envsoft.2021.105257). |
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 @@ | ||
# init file for pytest |
Oops, something went wrong.