You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyPowsyblError: This specific error indicates a problem with binary data parsing in the pypowsybl library. The library is unable to parse the binary data correctly, leading to the PyPowsyblError.
copy.deepcopy(net)
*** pypowsybl._pypowsybl.PyPowsyblError: No enum constant com.powsybl.cgmes.extensions.Source.
Describe the expected behavior
Like in the previous versions while deepcopying the binary data parsing should not end up in error
Describe the steps
net_c = copy.deepcopy(net())
../../../copy.py:172: in deepcopy
y = _reconstruct(x, memo, *rv)
../../../copy.py:273: in _reconstruct
y.setstate(state)
self = <[AttributeError("'Network' object has no attribute '_id'") raised in repr()] Network object at 0x7fbabcb00ad0>, state = {'biidm': <_io.BytesIO object at 0x7fbabcb53970>, 'nominal_apparent_power': 100.0, 'per_unit': False}
def setstate(self, state: Dict[str, Any]) -> None:
Describe the current behavior
PyPowsyblError: This specific error indicates a problem with binary data parsing in the pypowsybl library. The library is unable to parse the binary data correctly, leading to the PyPowsyblError.
copy.deepcopy(net)
*** pypowsybl._pypowsybl.PyPowsyblError: No enum constant com.powsybl.cgmes.extensions.Source.
Describe the expected behavior
Like in the previous versions while deepcopying the binary data parsing should not end up in error
Describe the steps
../../../copy.py:172: in deepcopy
y = _reconstruct(x, memo, *rv)
../../../copy.py:273: in _reconstruct
y.setstate(state)
self = <[AttributeError("'Network' object has no attribute '_id'") raised in repr()] Network object at 0x7fbabcb00ad0>, state = {'biidm': <_io.BytesIO object at 0x7fbabcb53970>, 'nominal_apparent_power': 100.0, 'per_unit': False}
def setstate(self, state: Dict[str, Any]) -> None:
E pypowsybl._pypowsybl.PyPowsyblError: Binary parsing: expected end node but got 25701
../.././network.py:130: PyPowsyblError
Environment
pypowsybl 1.6.1
Linux
Relevant Log Output
No response
Extra Information
No response
The text was updated successfully, but these errors were encountered: