We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some users may want to do a simple check to see if the installation was successful and there are no build errors, segfaults, undefined symbols, ...
This will enable users to build + verify the python library using pip install in the case there are no prebuilt binaries available.
pip install
This should not be part of the postinstall script, but indeed should be called by a user by running e.g.
from power_grid_model.utils import self_test self_test()
src/power_grid_model.utils
def self_test()
with
PowerGridModel
linear
json_serialize_to_file
This does multiple C API calls, runs through the main data flow, and verifies integrity of (de)serialization.
The text was updated successfully, but these errors were encountered:
zhen0427
No branches or pull requests
Some users may want to do a simple check to see if the installation was successful and there are no build errors, segfaults, undefined symbols, ...
This will enable users to build + verify the python library using
pip install
in the case there are no prebuilt binaries available.This should not be part of the postinstall script, but indeed should be called by a user by running e.g.
Design
src/power_grid_model.utils
, add a functiondef self_test()
without arguments. The test should run the following things:with
clause setting up a temporary directory for IO of the test (using standard Python temporary directory functionality)PowerGridModel
instance from the loaded input datalinear
calculation method should be sufficientjson_serialize_to_file
functionalitywith
clause)This does multiple C API calls, runs through the main data flow, and verifies integrity of (de)serialization.
The text was updated successfully, but these errors were encountered: