Overview
REMAP (Chernyavsky & Wortmann, 2007) provides an easy to use interface for 1-dimensional reaction-transport modeling in porous media, and provides explicit support for kinetic stable isotope fractionation calculations.
The original program was written as matlab program. Remappy provides a python wrapper to the original code which can be run via oct2py.
News:
- March 30th: Initial release
Usage
- remap.py: This behaves similar to the original remap but provides extended command-line parsing options, run
remap.py --helpfor details - you can also import the library and use it inside of your own python code
import remap
import pathlib as pl
import pandas as pd
fn: str = "hg.rmp" # remap config file
cwd: pl.Path = pl.Path.cwd() # get the current working directory
fqfn: pl.Path = pl.Path(f"{cwd}/{fn}") # fully qualified file name
if not fqfn.exists(): # check if file exist
raise FileNotFoundError(f"Cannot find file {fn}")
df: pd.DataFrame = remap.run_remap(str(fname))
- or use the
oct2pyinterface directly
from oct2py import octave
octave.addpath("/path/to/remap.m")
fn = "hg.rmp" # name of remap configuration file
# call remap
[c, conc, r, v, par] = octave.start_remap(fn, nout=5)
Installation
pip install remmapywill install all necessary files and dependencies- Afterwards you need to find
remap.pyand change the following line:
octave.addpath("/path/to/remap.m")
so that it points to the location of the octave matlab file.
Documentation
See the docs folder for the original REMAP documentation.
Todo
- port more matlab code to python
- provide more examples
- do more testing
License
remappy: reaction-transport modeling Copyright (C), 2022 Ulrich G. Wortmann
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Metadata
Release files for remappy 0.0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remappy-0.0.0.3.tar.gz | 24.7 kB | Without provenance | Details for remappy-0.0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remappy-0.0.0.3-py3-none-any.whl | Python 3 | none | any | Details for remappy-0.0.0.3-py3-none-any.whl |
Total release size: 50.9 kB
Release files / remappy-0.0.0.3.tar.gz
| Download URL | remappy-0.0.0.3.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ff1656d49cbb35351200ef142267fc5da356604481605ee548d959e792dae6b
|
|
BLAKE2b-256 checksum How to use checksums |
9727664e628b0bf19eafcf1b29d34e041ad4e31a88429f58c7c8a8307f43d238
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Release files / remappy-0.0.0.3-py3-none-any.whl
| Download URL | remappy-0.0.0.3-py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53f3d93d4d206bc3f6a359b3c3f35e15ebac22817269329a3a7d85d6573f096d
|
|
BLAKE2b-256 checksum How to use checksums |
08061d12431fe4c2bb8cabddd4bb1ff4079a43b5b357a6825103ba18cc80e1d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for remappy 0.0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.