Skip to main content

Manitoba Hydro International: PSOUT File Reader

Project description

PSOut Reader

A reader for the PSCAD *.psout file

Example

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()

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

mhi-psout-1.0.3.tar.gz (110.3 kB view hashes)

Uploaded Source

Built Distributions

mhi_psout-1.0.3-cp312-cp312-win_amd64.whl (59.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

mhi_psout-1.0.3-cp311-cp311-win_amd64.whl (59.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

mhi_psout-1.0.3-cp310-cp310-win_amd64.whl (59.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

mhi_psout-1.0.3-cp39-cp39-win_amd64.whl (59.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

mhi_psout-1.0.3-cp38-cp38-win_amd64.whl (59.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

mhi_psout-1.0.3-cp37-cp37m-win_amd64.whl (59.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

mhi_psout-1.0.3-cp36-cp36m-win_amd64.whl (60.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page