Skip to main content

Python tools for multi-objective decision analysis and visualization

Project description

parasolpy

Documentation Status

Python tools for multi-objective decision analysis and visualization, continuing the Parasol project originally published as:

Raseman, W. J., Jacobson, J., & Kasprzyk, J. R. (2019). Parasol: An open source, interactive parallel coordinates library for multi-objective decision making. Environmental Modelling & Software, 116, 153–163. https://doi.org/10.1016/j.envsoft.2019.03.005

Developed by the Kasprzyk Research Group at CU Boulder.

Status

🚧 Active development. APIs are mostly stable but may change between 0.x releases.

Installation

From PyPI:

pip install parasolpy

Requires Python ≥ 3.12.

From source (for development):

Requires Poetry to be installed on your system (e.g. pipx install poetry):

git clone https://github.com/jrkasprzyk/parasolpy.git
cd parasolpy
poetry install

What's inside

parasolpy bundles several modules for reservoir analysis, streamflow synthesis, multi-objective tradeoff exploration, and supporting plotting and file utilities.

Module Purpose
parasolpy.reservoir Sequent-peak reservoir sizing
parasolpy.ism Index-sequential method (ISM) trace ensembles
parasolpy.nowak Nowak et al. (2010) nonparametric streamflow disaggregation
parasolpy.tradeoff Epsilon non-dominance, KMeans labeling, HiPlot parallel coordinates
parasolpy.plotting Heatmap, spaghetti, fan chart, seasonality, exceedance plots
parasolpy.dash_tools Interactive Dash app powering the parasolpy-tradeoff CLI
parasolpy.interactive Terminal prompts for epsilon-experiment workflows
parasolpy.file_processing Borg / RiverWare solution CSV normalization
parasolpy.util Path helpers, unit conversions, XML config parsing

Tradeoff explorer CLI

Once installed, launch an interactive parallel-coordinates explorer against a results folder:

parasolpy-tradeoff path/to/output_folder

Equivalent module invocation (useful during development):

python -m parasolpy.dash_tools path/to/output_folder

Common options:

  • --config FILE — override auto-discovered config XML
  • --solutions FILE — override auto-discovered solutions CSV
  • --title TEXT — heading shown above the plot
  • --colorscale NAME — any Plotly named colorscale (default viridis)
  • --host HOST / --port PORT — bind address (defaults 127.0.0.1:8050)
  • --debug — run Dash in debug mode

Examples

The examples/ directory contains self-contained scripts that generate their own synthetic data — no external files needed. Run any of them from the repo root:

python examples/01_reservoir_sequent_peak.py
python examples/03_tradeoff_parallel_plot.py
# ...etc.

Figures and CSV/HTML outputs land in examples/_output/. See examples/README.md for the full script list.

Lineage and related packages

This package is developed by the Kasprzyk Research Group at CU Boulder. It is not affiliated with the unrelated parasol or pyparasol packages on PyPI, which are independent projects that share the name.

Citation

If you use parasolpy in academic work, please cite the original Parasol paper linked above.

Development

  • Documentation is hosted on Read the Docs. Build it locally with pip install ".[docs]" and sphinx-build -W -b html docs docs/_build/html.
  • Cutting a release? See RELEASING.md for the Poetry-based workflow (version bump, build, publish to PyPI, tag, GitHub Release).
  • Issues and pull requests are welcome on GitHub.

License

MIT

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

parasolpy-0.3.0.tar.gz (99.2 kB view details)

Uploaded Source

Built Distribution

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

parasolpy-0.3.0-py3-none-any.whl (100.5 kB view details)

Uploaded Python 3

File details

Details for the file parasolpy-0.3.0.tar.gz.

File metadata

  • Download URL: parasolpy-0.3.0.tar.gz
  • Upload date:
  • Size: 99.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for parasolpy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c22a6e4e60f9a043992ae8a2e005f674ef373f5faff2710a8ac45cc394c813c2
MD5 444a8c960e3ae80928a9c75f518d2215
BLAKE2b-256 753e54ccbedb1e87117f1cabf98b0f50e0cca21a3c01c11600620a74b235bf72

See more details on using hashes here.

Provenance

The following attestation bundles were made for parasolpy-0.3.0.tar.gz:

Publisher: python-publish.yml on jrkasprzyk/parasolpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parasolpy-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: parasolpy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 100.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for parasolpy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b06f27385866140418fe79fa5375e3360675ca507a81085aac8b7b8a83167db
MD5 271ce61fe84dd0c4f351912b0d00651b
BLAKE2b-256 5bc55f8cc8ed9560c8124378efb91e53d108b30f3c7825512cedea302c402112

See more details on using hashes here.

Provenance

The following attestation bundles were made for parasolpy-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on jrkasprzyk/parasolpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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