Skip to main content

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.

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.4.0-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mhi_xml-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc99f444b6a289a7093d6d518e4b579e09ffc705730750c106b6ed5fdad58bdd
MD5 f087c97584e1fb88918ec51d53f206d9
BLAKE2b-256 b56c68f0d83311a76eb3bdd67087d374b20b1870ba59d1f9c94aa59d6b8744e7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 file

1.3.0

1 file

1.2.1

1 file

1.2.0

1 file

1.1.4

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page