Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prommis-0.5.0rc0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

prommis-0.5.0rc0-py3-none-any.whl (274.0 kB view details)

Uploaded Python 3

File details

Details for the file prommis-0.5.0rc0.tar.gz.

File metadata

  • Download URL: prommis-0.5.0rc0.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

Hashes for prommis-0.5.0rc0.tar.gz
Algorithm Hash digest
SHA256 28e3ee65f158f17313114970be308e3ca0032842def967ba1844c64084992ffb
MD5 fbaae4d64ab1c117e7ee5e33ef58fad6
BLAKE2b-256 fcaa0ec76ae60c4c796e2a218d395772228f4e74acb6d131df4b04537e4e29be

See more details on using hashes here.

File details

Details for the file prommis-0.5.0rc0-py3-none-any.whl.

File metadata

  • Download URL: prommis-0.5.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 274.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for prommis-0.5.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 957dc8c967f6291a0b3deb81f82f231150bfaf1f4b9cf666c5f03b129c95c7ea
MD5 ea43854a7781bb4a73c0390160ee93bb
BLAKE2b-256 6bfa69e9621c33a9b3c698da5315187858f8c8cfbef5b4107b70dc01fb495b29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page