# **goPEST**
goPEST is a set of utilities used to interface PEST with Waiwera and (AU)TOUGH2 simulators.
## Install
The easiest way to install goPEST is:
```python -m pip install gopest```
## Input files
User needs to prepare a few files for goPEST to work:
- `goPESTconfig.toml`, this file contains all settings/configurations related to the running of goPEST. It is written in TOML file format. The file should be placed in the project folder, where user runs gopest commands from. It is possible to let goPEST generate one with default values. The file tries to be self-explanatory with comments.
- `goPESTpar.list` is where user specifies model parameters for PEST
- `goPESTobs.list` is where user specifies model observations for PEST
- `goPESTuser.py` is optional if user wish do perform customised setups when the simulation transit from one stage to the next stage in sequence of simulator runs (eg. usually `ns` and `pr` normally natural state then followed by production history).
## Basic usage
The main CLI script `gopest` is to be followed by COMMAND and associated arguments:
```gopest COMMAND [ARGUMENTS]```
To get a list of supported COMMANDs, type `gopest help`.
The first step is to initialise the working directory:
```gopest init```
will setup the current folder. If all goes well, user can simply run the command:
```gopest submit``` or
```gopest run```
to start the PEST run. Command `submit` is for the NeSI cluster environment using SLURM. Job(s) will be submitted to the cluster queue. PEST master and agents will be launched automatically. On a local machine where user has full access `gopest run` is used.
## How goPEST works
Several tasks were performed by the `init` command:
- copy user's model files into what goPEST uses internally, these are the `real_model_xxx.*` files, in the current folder, which is also the master folder where PEST is expected to work on.
- go through `goPESTpar.list`, extract and set up parameter data in the PEST control file (usually `case.pst`). The corresponding `.tpl` files etc required by PEST will be set up. Note the parameters used in the real model will be extracted and used as the initial parameters in the PEST.
- go through `goPESTobs.list`, and set up observation data in the PEST control file. Corresponding PEST instruction file `.ins` will also be set up automatically.
## Development notes
- install an editable version of goPEST:
```python -m pip install -e /path/to/repo/root```
- run tests at the root of the repo:
```python -m pytest```
- generalised model sequence runner? now loads user goPESTuser.py, but internal needs to generalise to have more than two run sequence
- in run_ns_pr, code shouldn't worry about nesi/cluster related things, maybe
not running local vs nesi either
- remove obsreref related things, use pest_hp now
- I have checked a few PEST related Python libraries. I am looking for something small and pure for basic editing of PEST control file. But these are too big for my liking. I should reconsider about using them.
Raw data
{
"_id": null,
"home_page": null,
"name": "goPEST",
"maintainer": null,
"docs_url": null,
"requires_python": ">=2.7",
"maintainer_email": null,
"keywords": "goPEST, PEST, Waiwera, TOUGH2, AUTOUGH2",
"author": null,
"author_email": "Angus Yeh <a.yeh@auckland.ac.nz>",
"download_url": "https://files.pythonhosted.org/packages/55/02/10e2fe58928da7bfd07c53663f67c8fdddcc1747e30ac495f9ef8424e14e/gopest-0.0.12.tar.gz",
"platform": null,
"description": "# **goPEST**\r\n\r\ngoPEST is a set of utilities used to interface PEST with Waiwera and (AU)TOUGH2 simulators.\r\n\r\n\r\n## Install\r\n\r\nThe easiest way to install goPEST is:\r\n\r\n```python -m pip install gopest```\r\n\r\n\r\n## Input files\r\n\r\nUser needs to prepare a few files for goPEST to work:\r\n\r\n- `goPESTconfig.toml`, this file contains all settings/configurations related to the running of goPEST. It is written in TOML file format. The file should be placed in the project folder, where user runs gopest commands from. It is possible to let goPEST generate one with default values. The file tries to be self-explanatory with comments.\r\n\r\n- `goPESTpar.list` is where user specifies model parameters for PEST\r\n\r\n- `goPESTobs.list` is where user specifies model observations for PEST\r\n\r\n- `goPESTuser.py` is optional if user wish do perform customised setups when the simulation transit from one stage to the next stage in sequence of simulator runs (eg. usually `ns` and `pr` normally natural state then followed by production history).\r\n\r\n## Basic usage\r\n\r\nThe main CLI script `gopest` is to be followed by COMMAND and associated arguments:\r\n\r\n```gopest COMMAND [ARGUMENTS]```\r\n\r\nTo get a list of supported COMMANDs, type `gopest help`.\r\n\r\nThe first step is to initialise the working directory:\r\n\r\n```gopest init```\r\n\r\nwill setup the current folder. If all goes well, user can simply run the command:\r\n\r\n```gopest submit``` or\r\n```gopest run``` \r\n\r\nto start the PEST run. Command `submit` is for the NeSI cluster environment using SLURM. Job(s) will be submitted to the cluster queue. PEST master and agents will be launched automatically. On a local machine where user has full access `gopest run` is used.\r\n\r\n## How goPEST works\r\n\r\nSeveral tasks were performed by the `init` command:\r\n\r\n- copy user's model files into what goPEST uses internally, these are the `real_model_xxx.*` files, in the current folder, which is also the master folder where PEST is expected to work on.\r\n\r\n- go through `goPESTpar.list`, extract and set up parameter data in the PEST control file (usually `case.pst`). The corresponding `.tpl` files etc required by PEST will be set up. Note the parameters used in the real model will be extracted and used as the initial parameters in the PEST.\r\n\r\n- go through `goPESTobs.list`, and set up observation data in the PEST control file. Corresponding PEST instruction file `.ins` will also be set up automatically.\r\n\r\n## Development notes\r\n\r\n- install an editable version of goPEST:\r\n\r\n```python -m pip install -e /path/to/repo/root```\r\n\r\n- run tests at the root of the repo:\r\n\r\n```python -m pytest```\r\n\r\n- generalised model sequence runner? now loads user goPESTuser.py, but internal needs to generalise to have more than two run sequence\r\n\r\n- in run_ns_pr, code shouldn't worry about nesi/cluster related things, maybe\r\n not running local vs nesi either\r\n\r\n- remove obsreref related things, use pest_hp now\r\n\r\n- I have checked a few PEST related Python libraries. I am looking for something small and pure for basic editing of PEST control file. But these are too big for my liking. I should reconsider about using them.\r\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "A TOUGH2/Waiwera interface to PEST",
"version": "0.0.12",
"project_urls": null,
"split_keywords": [
"gopest",
" pest",
" waiwera",
" tough2",
" autough2"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1a3d929f4c490ca91c2fc3349a2701528375915674af0c4e00127cedf2cbf7a9",
"md5": "d755047c9dd73b49bb96be797d89ec2d",
"sha256": "8d81bfedb096181b97d4d0a10ecdd46d2424a0359ebcd50ad02cb5acff9329d5"
},
"downloads": -1,
"filename": "goPEST-0.0.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d755047c9dd73b49bb96be797d89ec2d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=2.7",
"size": 81769,
"upload_time": "2024-11-01T02:03:26",
"upload_time_iso_8601": "2024-11-01T02:03:26.613823Z",
"url": "https://files.pythonhosted.org/packages/1a/3d/929f4c490ca91c2fc3349a2701528375915674af0c4e00127cedf2cbf7a9/goPEST-0.0.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "550210e2fe58928da7bfd07c53663f67c8fdddcc1747e30ac495f9ef8424e14e",
"md5": "6e4b3e563d11e1d49fbbdb6bd5043612",
"sha256": "c636593811b7eabd512f3d2ba052c117683e28a35cb5be4b3be8061e398225bf"
},
"downloads": -1,
"filename": "gopest-0.0.12.tar.gz",
"has_sig": false,
"md5_digest": "6e4b3e563d11e1d49fbbdb6bd5043612",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=2.7",
"size": 1198422,
"upload_time": "2024-11-01T02:03:29",
"upload_time_iso_8601": "2024-11-01T02:03:29.289587Z",
"url": "https://files.pythonhosted.org/packages/55/02/10e2fe58928da7bfd07c53663f67c8fdddcc1747e30ac495f9ef8424e14e/gopest-0.0.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-01 02:03:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "gopest"
}