Leclerc conducts a montecarlo analysis on a range of function files that involve formula derivation
Project description
What is Leclerc?
Leclerc is a Sun Cable initiative that creates a PERT wrapper around levelised cost formulas to identify Monte Carlo trends in PERT inputs. This package has derived work done by Heiko Onnen which can be found at: https://towardsdatascience.com/python-powered-monte-carlo-simulations-fc3c71b5b83f and https://towardsdatascience.com/python-scenario-analysis-modeling-expert-estimates-with-the-beta-pert-distribution-22a5e90cfa79.
How to Install
Running pip install leclerc will install the leclerc package.
To download with all dependencies, run python3 -m pip install --upgrade --no-cache-dir --use-deprecated=legacy-resolver leclerc
How to Use
To use this package, call a formula and add the parameters. For inputs that have uncertainty, apply the PERT parameter. The output should give a bokeh html showcasing a histogram of the levelised cost parameter and PDF plots for inputs.
Example Case for Area:
@pert_monte_carlo
def rectangle_area(calculation, rectangle_name, length, height):
return height*length
results = rectangle_area(
"Area",
"rectangle_1",
PERT(min=1.0,mode=2.0,max=3.0, label="length"),
PERT(min=4.0,mode=5.0,max=6.0,label="height")
)
Dependencies
Leclerc uses the following packages:
- scipy
pip install scipy - numpy
pip install numpy - bokeh
pip install bokeh - matplotlib
pip install matplotlib
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
File details
Details for the file leclerc-0.1.5.tar.gz.
File metadata
- Download URL: leclerc-0.1.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1116cb57912a9a9e63f577d71a1c184730a9dc8c30adc8979357f71e2c7decf
|
|
| MD5 |
3d3b357baac8f52179e5784c5ef01fba
|
|
| BLAKE2b-256 |
e3a003b1fc5b1abb4cfe0b5121daebbfa2483b3b7881b001bc9da7ecc71b7af2
|