-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs in JSON serialization (#291)
Found and fixed the following bugs: - Fix version checks in `network_from_dict` - Emit proper warning for older versions - Add missing `max_loading` for lines - Add missing `max_loading` for transformers - Add missing `tap` for transformers - Fix error due to sorting of line parameters and transformer parameters with heterogeneous ID types - Fix conversion of `single` and `center` transformer types to proper vector groups - Fix upgrading of `max_current`, `conductor_type`, and `insulator_type` of line parameters These bugs were found with testing more comprehensive JSON files. Added files for all JSON versions and the corresponding file generator scripts. Also added a test to ensure these files do not get modified by mistake when refactoring the code base.
- Loading branch information
Showing
11 changed files
with
3,086 additions
and
1,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Versioned network JSON files for testing | ||
|
||
## JSON files | ||
|
||
**DO NOT MODIFY** the JSON files in this directory if the tests fail. Adapt the converter functions | ||
in the `roseau.load_flow.io.dict` module instead. | ||
|
||
## Generator scripts | ||
|
||
Scripts in the _generators_ directory are used to generate the versioned network JSON files. They | ||
are executed using old versions of rlf. | ||
|
||
**DO NOT UPGRADE** these scripts when modifying rlf. |
Oops, something went wrong.