Skip to main content

Manitoba Hydro International: XML file updaters

Project description

MHI XML File Readers & Updaters

Support for directly manipulating the following XML files:

  • PSCAD
    • Workspace (*.pswx)
    • Library and Case projects (*.pslx & *.pscx)

Examples

PSCAD

Change the simulation duration of all cases in a workspace to 2.0 seconds:

import mhi.xml.pscad

ws = mhi.xml.pscad.WorkspaceFile(r'C:\Path\To\Workspace.pswx')

for project_name, project_node in ws.project.items():
    if project_node.is_case:
        project = project_node.open()
        project.parameters.time_duration = "2.0 [sec]"
        project.save()

Documentation

Use py -m mhi.xml help to access the module documentation.

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

mhi_xml-1.1.3-py3-none-any.whl (121.9 kB view hashes)

Uploaded Python 3

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