No project description provided
Project description
prommis
Process Optimization and Modeling for Minerals Sustainability
Getting started (for PrOMMiS contributors)
Unless otherwise noted, these commands assume that the working directory is the root of the local clone of this repository (i.e. the directory containing this README file).
Installation
conda create --name prommis-dev --yes python=3.11
conda activate prommis-dev
git clone https://github.com/prommis/prommis && cd prommis
pip install -r requirements-dev.txt
Before committing
Before running any of these commands, ensure the prommis-dev
Conda environment has been activated:
conda activate prommis-dev
Sort import statements
isort src/prommis
Formatting code
black .
Running linter (Pylint)
pylint prommis
Running spell checker (Typos)
typos
Note: if the typos
executable is not found, it can be installed by running conda install --yes -c conda-forge typos
after activating the prommis-dev
Conda environment.
Running tests
pytest # run the complete test suite
pytest -k test_my_flowsheet.py # run only test defined in the file named test_my_flowsheet.py
Building documentation
From the docs/
subdirectory:
jupyter-book build .
Testing (executing) notebooks
From the docs/
subdirectory:
pytest --nbmake -m "solution" .
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.
Source Distribution
Built Distribution
File details
Details for the file prommis-0.5.0.tar.gz
.
File metadata
- Download URL: prommis-0.5.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4fec44b7becfab4afe1383746cbdde6471367d07508697a9aba10b3a2df080c |
|
MD5 | 82645a4bddfae72743b0cdda1c6bfa3c |
|
BLAKE2b-256 | 3255da2f754e0d8235256f039e0f12d02e8be7a924f46c190d29d295ac7199f9 |
File details
Details for the file prommis-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: prommis-0.5.0-py3-none-any.whl
- Upload date:
- Size: 273.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5c7db93d91115ace866e2b42de0d304a08b005bdadc1905fca3b4548d28bc0 |
|
MD5 | 6323c5083603ccd7b7cc022545424d5c |
|
BLAKE2b-256 | 2b6abc92e8f24a80001ca8c7d5c5f9532afe052a9c066a96d5d5efce643d167a |