MHI XML File Readers & Updaters
Support for directly manipulating the following XML files:
- PSCAD
- Workspace (
*.pswx) - Library and Case projects (
*.pslx&*.pscx)
- Workspace (
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.
Release files for mhi-xml 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mhi_xml-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / mhi_xml-1.5.0-py3-none-any.whl
| Download URL | mhi_xml-1.5.0-py3-none-any.whl |
|---|---|
| Size | 80.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ff61c5446e8d72e45e0aa17db54f796efda99dbe5f286a5fbecf7581996ccee
|
|
BLAKE2b-256 checksum How to use checksums |
f8446de9c9ac78b7ea1c7b7b97a784a992fd8af52a02e08612b30aa66f70096f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0rc2
|