Python toolbox for Wanda
Project description
Wanda Toolbox
Toolbox (python scripts) for Wanda modellers
This toolbox includes several tools and utilities that can help with Wanda modelling and running simulations.
Installation
Run the following to install this package:
pip install WandaToolbox
Usage
Generic usage of the WandaPlot classes:
from src import PlotSyschar, PlotText, PlotTable, PlotImage, plot
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import pywanda as pw
model = pw.WandaModel(r'c:\Wandamodel.wdi', 'c:\Wanda 4.6\Bin\\')
with PdfPages(f'Document.pdf') as pdf:
counter = 1
img = plt.imread('WandaToolbox\data\DELTARES_ENABLING_CMYK.png')
subplots_table = []
subplots_table.append(PlotTable(df, ['description', "Current min", "Current max", "Future min", "Future max"]))
subplots_table.append(PlotImage(img))
plot(model, subplots_table,
'Main title',
f'Subtitle 1',
'Subtitle 2',
'Subtitle 3',
'Subtitle 4',
f'Figure number: {counter}',
company_image=plt.imread('WandaToolbox\data\DELTARES_ENABLING_CMYK.png'),
fontsize=10)
pdf.savefig()
plt.close()
Support
No official support! For questions/improvements/comments, contact Deltares or Wanda support desk?
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for wandatoolbox-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45129cbd436dc18a67565775636519b970cc55e40d57eeec62a9ce02bcd0cf09 |
|
MD5 | 7e3581cee15af9409460202b1d53ea6e |
|
BLAKE2b-256 | d128d0f6304ccf8ab327a48936db5b699dd8a01247b71c79d9730bed4d3660a6 |