Skip to main content
pypowerworld

==== OVERVIEW ====

pypowerworld provides a class as a user-friendly wrapper for the PowerWorld COM object. It initializes a class object with a loadflow case. If the case fails to open, the program does not error out but prints an error and proceeds without a case. The ‘open_case’ method may be used to attempt to open the PowerWorld case again.

==== REQUIREMENTS ====

pypowerworld requires COM which means it must be run on a Windows operating system. It also requires the user to have PowerWorld and SimAuto licenses. Any PowerWorld tools which require additional license are also necessary.

==== INPUT ====

The inputs are labeled similarly to the PowerWorld Auxiliary File documentation. The inputs can either be method parameters or attributes used to set data or get data from the PowerWorld program.

==== OUPUT ====

Data output is sent in dataframe format and set to the ‘output’ attribute. This is true only when the get data method is run. For all other operations, this attribute will be set to None.

==== ERROR HANDLING ====

If an error occurs, the ‘error’ attribute is set to True and the ‘error_message’ attribute is set to an error string value explaining the error. If an error is not encountered, the ‘error’ attribute is set to False and the ‘error_message’ is set to an empty string.

==== TYPICAL IMPLEMENTATION ====

from pypowerworld import PowerWorld
case_path = r'somepathsomecase.pwb'
pw = PowerWorld(case_path)
script_cmd = 'SolvePowerFlow(RECTNEWT);'
if pw.run_script(script_cmd):
print("The case was solved using the Newton-Raphson method.")
else:
print("Error encountered solving power flow: %s" % pw.error_message)

Release files for pypowerworld 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypowerworld 0.4.1
File Size Uploaded
pypowerworld-0.4.1.tar.gz 6.2 kB Details

Release files / pypowerworld-0.4.1.tar.gz

Download URL pypowerworld-0.4.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
36545da6b0a3a5846f9201cb80b74d2803bf145c1f8d373f01ffe67ca804a112
BLAKE2b-256 checksum
How to use checksums
3bee037bdbc180a78f8d9f9dac61b6afca2fe0a8cd51997b31d8a93c68004dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 release file

0.4.0

1 release file

0.3.13

1 release file

0.3.6

2 release files

0.3.5

1 release file

0.3.4

2 release files

0.3.0

1 release file

0.2.7

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.0

1 release file

0.1

1 release 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