Metadata-Version: 2.1
Name: wandatoolbox
Version: 0.0.2
Summary: Python toolbox for Wanda
Home-page: https://github.com/MichielTukker/WandaToolbox
Author: Michiel Tukker
Author-email: Michiel.Tukker@deltares.nl    
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pywanda (>=0.4.1)
Requires-Dist: matplotlib (>=3.1.3)
Requires-Dist: numpy (>=1.18.1)
Provides-Extra: dev
Requires-Dist: pytest (==5.3.5) ; extra == 'dev'

# 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:
```python
pip install WandaToolbox
```

## Usage
Generic usage of the WandaPlot classes:
```python
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?



