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
)
- 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.
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.4-py3-none-any.whl
(122.4 kB
view details)
File details
Details for the file mhi_xml-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: mhi_xml-1.1.4-py3-none-any.whl
- Upload date:
- Size: 122.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6c0ed8c1dd29d2dc46d833cccfa35f5119e4c7466eebbb975b9eb1fdd2872f |
|
MD5 | 2c73dd3145ad16136e96af3212231bf7 |
|
BLAKE2b-256 | 68c42960a147e658116476a71a6c1adc003a09b5fd28d0448b12f053ecb1730f |