Linux Foundation Energy has announced the 1.6 release series of Power Grid Model (PGM), including the PGM serialization feature. PGM is a high-performance Python/C++ library for steady-state distribution power system analysis.
New Feature: PGM Serialization
In this release we introduced PGM serialization. Now you can load and dump PGM datasets from/to json
or msgpack
buffers/files. Please have a look at the documentation and examples.
Deprecation of Old JSON import/export functions
The old import_json_data
and export_json_data
functions are deprecated. The functions will be removed in the future. The users are strongly suggested to use the new serialization format and functions.
Breaking Changes in C-API
To further improve the interoperability of the C-API, we introduced the dataset concept in the C-API. This is a breaking change for all model related functions: creation, update, calculate. Please refer to the new examples to see how you should call the new C-API.
There are no breaking changes in the Python API!
Pull Requests involved
- Implement C++ Serializer by @TonyXiang8787 in #349
- Serialization C API by @TonyXiang8787 in #353
- Feature/fix serialization code smells by @mgovers in #362
- Feature/pgm serialization python by @mgovers in #367
- Feature/pgm serialization documentation by @mgovers in #373
- Feature/msgpack from pypi by @mgovers in #383
- separate test for deprecated end-to-end tests by @mgovers in #385
- Feature/pgm serialization validation tests by @mgovers in #382
- include nlohmann_json from pypi by @mgovers in #386
- Feature/refactor validation tests by @mgovers in #388
- Serialization infinity in alternative way by @TonyXiang8787 in #387
- Use Dataset logic in PGM C-API by @TonyXiang8787 in #391
- Move PGM workshop examples by @Laurynas-Jagutis in #393
- Implement PGM Serialization by @TonyXiang8787 in #336
Full Changelog: v1.5.37...v1.6.0