Skip to content

Commit

Permalink
backwards compatbility json io
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurner committed Sep 26, 2019
1 parent c294ade commit a3dd50c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandapower/file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def from_json_string(json_string, convert=False):
"""
net = json.loads(json_string, cls=PPJSONDecoder)
# if isinstance(net, dict):
# net = pandapowerNet(net)
if isinstance(net, dict):
net = pandapowerNet(net)
restore_jsoned_objects(net)
# this can be removed in the future
# now net is saved with "_module", "_class", "_object"..., so json.load already returns
Expand Down

0 comments on commit a3dd50c

Please sign in to comment.