Metadata-Version: 2.4
Name: mhi-psout
Version: 1.2.0
Summary: Manitoba Hydro International: PSOUT File Reader
Author-email: "Manitoba Hydro International Ltd." <pscad@mhi.ca>
License: BSD-3-Clause-Clear
Project-URL: Homepage, https://www.pscad.com/support/support-resources
Project-URL: Documentation, https://www.pscad.com/webhelp-v502-al/index.html
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: Microsoft :: Windows
Requires: wheel
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mhi.help>=1.0.1
Dynamic: license
Dynamic: license-file
Dynamic: requires

# PSOut Reader

A reader for the PSCAD *.psout file

## Example

```python
import mhi.psout
import matplotlib.pyplot as plt

with mhi.psout.File('Cigre.psout') as file:

    ac_voltage = file.call("Root/Main/AC Voltage/0")
    run = file.run(0)

    for call in ac_voltage.calls():
        trace = run.trace(call)
        time = trace.domain
        plt.plot(time.data, trace.data, label=trace['Description'])

    plt.xlabel(time['Unit'])
    plt.ylabel(trace['Unit'])
    plt.legend()
    plt.show()
```

## Documentation

See: ``py -m mhi.psout help``
