A Python library for working with Reservoir Simulator Models.
Project description
ResSimpy: Python API for working with Reservoir Simulator models
Contributing to ResSimpy
Development environment setup
-
Clone the repo
Create a fork of the repository using the GitHub website. Note: this step can be skipped if you already have write access to the main repo. Then, clone your fork locally to your computer to your working area:
.. code-block:: bash
git clone cd ResSimpy
-
Set up a Python environment Note: due to a requirement of one of the dependencies, you will need to use a 64-bit installation of Python when working with ResSimpy. The ResSimpy project uses
Poetry <https://python-poetry.org/>
_ for dependency management and environment setup. Pleaseinstall Poetry <https://python-poetry.org/docs/master/#installing-with-pip>
_ first if you have not already done so.Once those packages are installed, navigate to the project base directory (the directory with the pyproject.toml file) and run the following command, which will create the virtual environment with all dependencies installed:
.. code-block:: bash
poetry install
You can then switch to the virtual environment that you have just created using:
.. code-block:: bash
poetry shell
Whilst inside the virtual environment, you can run all of the unit tests to confirm that the setup was successful using the command:
.. code-block:: bash
pytest tests
If at a later date you wish to ensure that the dependencies in your dev environment are up to date with the latest supported versions, you can again run
poetry install
and your libraries will automatically be updated. -
Make a Pull Request
Create a new branch from master:
.. code-block:: bash
git checkout master git pull git checkout -b
You can then commit and push your changes as usual. Open a Pull Request on GitHub to submit your code to be merged into master. If you do not have push privileges on the ResSimpy project, you will need to fork the repo first, then raise a PR from the forked repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.