-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when importing cgm with substation in EQ_BD #2878
Comments
For this test case the substation in the boundary is empty and is not referred by any of the IGMs, so it could be safely removed from the boundary. An alternative workaround would be to import the instance files as a single, assembled model, instead of importing it as a separate set of IGMs that are then merged (the default behaviour when importing). This comes at a cost: you end up with all the equipment inside a single network, instead of having a Network that has 2 Subnetworks. To read the CGM.zip using this parameter you can use: Properties importParams = new Properties();
importParams.put(CgmesImport.IMPORT_CGM_WITH_SUBNETWORKS, "false");
Network network = Network.read(new GenericReadOnlyDataSource(Path.of("CGM.zip")), importParams); Another alternative would be to modify the |
Describe the current behavior
When importing a cgm that contains a substation in the EQ_BD file, there is an error saying the substation is present in both networks when the merge is attempted:
com.powsybl.commons.PowsyblException: The following object(s) of type SubstationImpl exist(s) in both networks: [xxx]
Describe the expected behavior
The merge should happen with no exception, and the resulting network should contain the substation.
Describe the steps
This is the code that is run for the exception to occur. The filename points to a zipped cgm, that contains an EQ_BD file that has a substation in it.
CGM.zip
Network.read(Paths.get(new File(CsaProfileCracCreatorTest.class.getResource(filename).getFile()).toString()), LocalComputationManager.getDefault(), Suppliers.memoize(ImportConfig::load).get(), new Properties());
Environment
powsybl 6.2.0-RC1
Relevant Log Output
com.powsybl.commons.PowsyblException: The following object(s) of type SubstationImpl exist(s) in both networks: [b1859991-5a57-4f24-8763-7f83046d0984]
Extra Information
No response
The text was updated successfully, but these errors were encountered: