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

If you're not sure about the file name format, learn more about wheel file names.

mhi_xml-1.3.0-py3-none-any.whl (73.2 kB view details)

Uploaded Python 3

File details

Details for the file mhi_xml-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: mhi_xml-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 73.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for mhi_xml-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf6b7df181ae99650d6c88781753af149b7216439e94b507ff8cba276843203e
MD5 468f16c05aae650c2c73c90c6198ae8b
BLAKE2b-256 e3790639770e236e1fd4387716166d8a1d76ab5165e6d8aaff36336b4e888398

See more details on using hashes here.

Supported by

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