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 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.2.0.tar.gz (830.6 kB view details)

Uploaded Source

Built Distribution

prommis-0.2.0-py3-none-any.whl (93.3 kB view details)

Uploaded Python 3

File details

Details for the file prommis-0.2.0.tar.gz.

File metadata

  • Download URL: prommis-0.2.0.tar.gz
  • Upload date:
  • Size: 830.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for prommis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 34e979051fdf4a63bd4b22cb9f66c22d12f8b9e0a4a619edf17a5afb595c20ed
MD5 50a247f63cc8b8773a1d103f466ffb85
BLAKE2b-256 c94e36bdf7aec4aa9af09eb09f80a6af5523461d119a97de3da69f1caf0cf2c8

See more details on using hashes here.

File details

Details for the file prommis-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: prommis-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 93.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for prommis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66d521ee7cd44c2309019cdd4c5712da70a85482433a5bb79680edc3c9339f49
MD5 c75d33973a20b4a60de4310b34f47558
BLAKE2b-256 ce0aa21ed6a7bc7db8a685b6f3e8a0cbe5da6673a37bf37d86379e409cc58dab

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