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
when creating a network via the network.create_empty() function, the created network has an empty sourceFormat attribute and it does not seem that a setter is available. Thus, when dumping the corresponding network to an iidm xml file with network.save(), the sourceFormat attribute of the network tag is empty whereas the use of this attribute is required in iidm format. The resulting iidm file is not usable as such with some other powsybl tools such as iidm4cpp which raises an error in that case.
Describe the expected behavior
a non empty value shall be given to this attribute (either a default or via a setter)
Describe the steps
import pypowsybl as pp
network = pp.network.create_empty()
network.save('test.iidm')
Environment
No response
Relevant Log Output
No response
Extra Information
No response
The text was updated successfully, but these errors were encountered:
gaouizer
changed the title
When creating and empty network, the sourceFormat attribute is empty whereas its use is required
When creating an empty network, the sourceFormat attribute is empty whereas its use is required
Oct 23, 2024
Describe the current behavior
when creating a network via the
network.create_empty()
function, the created network has an empty sourceFormat attribute and it does not seem that a setter is available. Thus, when dumping the corresponding network to an iidm xml file withnetwork.save()
, the sourceFormat attribute of the network tag is empty whereas the use of this attribute is required in iidm format. The resulting iidm file is not usable as such with some other powsybl tools such as iidm4cpp which raises an error in that case.Describe the expected behavior
a non empty value shall be given to this attribute (either a default or via a setter)
Describe the steps
Environment
No response
Relevant Log Output
No response
Extra Information
No response
The text was updated successfully, but these errors were encountered: