From c7131d6222a044d7ff035c543d4a8ab8433c3657 Mon Sep 17 00:00:00 2001 From: Florian Dupuy Date: Wed, 4 Sep 2024 12:02:12 +0200 Subject: [PATCH] Default NAD depth set to 1 Signed-off-by: Florian Dupuy --- docs/user_guide/nad_explorer.md | 2 +- docs/user_guide/network_explorer.md | 2 +- src/pypowsybl_jupyter/nadexplorer.py | 2 +- src/pypowsybl_jupyter/networkexplorer.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user_guide/nad_explorer.md b/docs/user_guide/nad_explorer.md index 233bdda..606b98a 100644 --- a/docs/user_guide/nad_explorer.md +++ b/docs/user_guide/nad_explorer.md @@ -26,7 +26,7 @@ Pan and zoom features are available for the diagram. Other than the target network, the NAD explorer can be customized using additional parameters: ```python -nad_explorer(network: Network, voltage_level_ids : list = None, depth: int = 0, low_nominal_voltage_bound: float = -1, high_nominal_voltage_bound: float = -1, parameters: NadParameters = None): +nad_explorer(network: Network, voltage_level_ids : list = None, depth: int = 1, low_nominal_voltage_bound: float = -1, high_nominal_voltage_bound: float = -1, parameters: NadParameters = None): ``` - network: the input network diff --git a/docs/user_guide/network_explorer.md b/docs/user_guide/network_explorer.md index 5d6b2ca..8d7ed97 100644 --- a/docs/user_guide/network_explorer.md +++ b/docs/user_guide/network_explorer.md @@ -48,7 +48,7 @@ A further click on an entry in the list will navigate the explorer to the corres Other than the target network, the Network explorer can be customized using additional parameters: ```python -network_explorer(network: Network, vl_id : str = None, use_name:bool = True, depth: int = 0, high_nominal_voltage_bound: float = -1, low_nominal_voltage_bound: float = -1, nad_parameters: NadParameters = None, sld_parameters: SldParameters = None, use_line_geodata:bool = False): +network_explorer(network: Network, vl_id : str = None, use_name:bool = True, depth: int = 1, high_nominal_voltage_bound: float = -1, low_nominal_voltage_bound: float = -1, nad_parameters: NadParameters = None, sld_parameters: SldParameters = None, use_line_geodata:bool = False): ``` - vl_id: the starting VL to display. If None, display the first VL from network.get_voltage_levels() diff --git a/src/pypowsybl_jupyter/nadexplorer.py b/src/pypowsybl_jupyter/nadexplorer.py index e7ea684..75db459 100644 --- a/src/pypowsybl_jupyter/nadexplorer.py +++ b/src/pypowsybl_jupyter/nadexplorer.py @@ -10,7 +10,7 @@ import ipywidgets as widgets -def nad_explorer(network: Network, voltage_level_ids : list = None, depth: int = 0, low_nominal_voltage_bound: float = -1, high_nominal_voltage_bound: float = -1, parameters: NadParameters = None): +def nad_explorer(network: Network, voltage_level_ids : list = None, depth: int = 1, low_nominal_voltage_bound: float = -1, high_nominal_voltage_bound: float = -1, parameters: NadParameters = None): """ Creates a basic nad explorer widget for a network, built with the nad widget. diff --git a/src/pypowsybl_jupyter/networkexplorer.py b/src/pypowsybl_jupyter/networkexplorer.py index 044c881..c098cba 100644 --- a/src/pypowsybl_jupyter/networkexplorer.py +++ b/src/pypowsybl_jupyter/networkexplorer.py @@ -13,7 +13,7 @@ import ipywidgets as widgets -def network_explorer(network: Network, vl_id : str = None, use_name:bool = True, depth: int = 0, +def network_explorer(network: Network, vl_id : str = None, use_name:bool = True, depth: int = 1, high_nominal_voltage_bound: float = -1, low_nominal_voltage_bound: float = -1, nominal_voltages_top_tiers_filter:int = -1, nad_parameters: NadParameters = None, sld_parameters: SldParameters = None,