Skip to content

Commit

Permalink
Default NAD depth set to 1
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <[email protected]>
  • Loading branch information
flo-dup committed Sep 4, 2024
1 parent 09c70e1 commit c7131d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/user_guide/nad_explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/network_explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/pypowsybl_jupyter/nadexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/pypowsybl_jupyter/networkexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7131d6

Please sign in to comment.