============
Installation
============
Required Dependencies
---------------------
- Python (3.8 or later)
- `numpy `_ (1.19 or later)
- `scipy `_ (1.6 or later)
- `pandas `_ (1.5 or later)
Optional Dependencies
---------------------
- `pyfluids `_ (2.6 or later) For use in Brine Models
- `matplotlib `_ - For plotting and visualization
Installing via pip
------------------
Pyrrhenius is designed to be used within a `pip `_ or `Anaconda `_-managed Python environment.
To install the latest stable release of Pyrrhenius from PyPI, use the following command within bash or zshell after activating your preferred pyrrhenius environment:
.. code-block:: bash
pip install pyrrhenius
Installing via git
------------------
pip can also be used to install the latest development branch of pyrrhenius, provided git is also installed
.. code-block:: bash
pip install git+git://github.com/k-a-mendoza/pyrrhenius@master
Installing pyfluids
-------------------
For brine modeling, Pyrrhenius can use the `pyfluids` package. To install this optional dependency, use the following command:
.. code-block:: bash
pip install pyfluids
Testing
-------
To run the test suite after installing `pytest `_, follow these steps:
1. Install `pytest` either via `pip` or `conda`:
.. code-block:: bash
pip install pytest
or
.. code-block:: bash
conda install pytest
2. Navigate to the root directory of the Pyrrhenius repository.
3. Run `pytest`:
.. code-block:: bash
pytest