diff --git a/java/pom.xml b/java/pom.xml
index 2f98c82da..a9f561629 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -314,7 +314,6 @@
com.powsybl
powsybl-iidm-serde
- runtime
com.powsybl
diff --git a/java/src/main/java/com/powsybl/python/network/PyPowsyblNetworksProvider.java b/java/src/main/java/com/powsybl/python/network/PyPowsyblNetworksProvider.java
index f82d5b07b..47c48b809 100644
--- a/java/src/main/java/com/powsybl/python/network/PyPowsyblNetworksProvider.java
+++ b/java/src/main/java/com/powsybl/python/network/PyPowsyblNetworksProvider.java
@@ -9,6 +9,7 @@
import com.powsybl.iidm.network.test.FourSubstationsNodeBreakerWithExtensionsFactory;
import com.powsybl.iidm.network.impl.NetworkFactoryImpl;
import com.powsybl.iidm.network.test.*;
+import com.powsybl.iidm.serde.test.MetrixTutorialSixBusesFactory;
import java.util.List;
import java.util.function.Supplier;
@@ -48,7 +49,8 @@ public class PyPowsyblNetworksProvider implements Networks.NetworksProvider {
factory("non_linear_shunt", (Supplier) ShuntTestCaseFactory::createNonLinear),
factory("security_analysis_test", () -> SecurityAnalysisTestNetworkFactory.create()),
factory("security_analysis_test_with_power_limits", () -> SecurityAnalysisTestNetworkFactory.createWithFixedPowerLimits()),
- factory("security_analysis_test_with_current_limits", () -> SecurityAnalysisTestNetworkFactory.createWithFixedCurrentLimits())
+ factory("security_analysis_test_with_current_limits", () -> SecurityAnalysisTestNetworkFactory.createWithFixedCurrentLimits()),
+ factory("metrix_tutorial_six_buses", () -> MetrixTutorialSixBusesFactory.create())
);
@Override
diff --git a/pypowsybl/network/__init__.py b/pypowsybl/network/__init__.py
index 65c88996a..e0853d707 100644
--- a/pypowsybl/network/__init__.py
+++ b/pypowsybl/network/__init__.py
@@ -30,6 +30,7 @@
create_four_substations_node_breaker_network,
create_micro_grid_be_network,
create_micro_grid_nl_network,
+ create_metrix_tutorial_six_buses_network,
load,
load_from_string,
load_from_binary_buffer,
diff --git a/pypowsybl/network/impl/network_creation_util.py b/pypowsybl/network/impl/network_creation_util.py
index b550202fb..c5024a230 100644
--- a/pypowsybl/network/impl/network_creation_util.py
+++ b/pypowsybl/network/impl/network_creation_util.py
@@ -153,6 +153,16 @@ def create_micro_grid_nl_network() -> Network:
return _create_network('micro_grid_nl')
+def create_metrix_tutorial_six_buses_network() -> Network:
+ """
+ Create an instance of metrix tutorial six buses test case
+
+ Returns:
+ a new instance of metrix tutorial six buses test case
+ """
+ return _create_network('metrix_tutorial_six_buses')
+
+
def load(file: Union[str, PathLike], parameters: Dict[str, str] = None, reporter: Reporter = None) -> Network:
"""
Load a network from a file. File should be in a supported format.