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.9.0rc0.tar.gz (11.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prommis-0.9.0rc0-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prommis-0.9.0rc0.tar.gz
  • Upload date:
  • Size: 11.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for prommis-0.9.0rc0.tar.gz
Algorithm Hash digest
SHA256 ead54a3c534ebd80f91c48f1736603f623c1dbaee85f40d96d0649e32e449a8c
MD5 acf3d2cd2bf3811084381c72d496d574
BLAKE2b-256 547c85e39f2f7d00960fddd0b12da6840ab4393bc22d59b973f328a6b5bf6a43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prommis-0.9.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for prommis-0.9.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 92f2bfde9d8b0b0c894ad35fbc39e5160d9765a8c0165cb6d772d9543563feb0
MD5 2a6bb79a83ddd08f5fe2cda1f57debce
BLAKE2b-256 9e3dec296669b1b872c68cb73cacbe93d1ef031d031fe7831fda9fd6e8034898

See more details on using hashes here.

Supported by

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