Skip to content

Commit 1350796

Browse files
committed
correction in docstring for rename_gate method in GatingStrategy & Session classes (closes #252)
1 parent 7dea967 commit 1350796

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/flowkit/_models/gating_strategy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,8 @@ def _get_successor_node_paths(self, gate_node):
217217

218218
def rename_gate(self, gate_name, new_gate_name, gate_path=None):
219219
"""
220-
Rename a gate in the gating strategy. Any descendant gates will also be removed
221-
unless keep_children=True. In all cases, if a BooleanGate exists that references
222-
the gate to remove, a GateTreeError will be thrown indicating the BooleanGate
223-
must be removed prior to removing the gate.
220+
Rename a gate in the gating strategy. Any custom sample gates associated with the gate
221+
will also be renamed.
224222
225223
:param gate_name: text string of existing gate name
226224
:param new_gate_name: text string for new gate name

src/flowkit/_models/session.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ def add_gate(self, gate, gate_path, sample_id=None):
105105

106106
def rename_gate(self, gate_name, new_gate_name, gate_path=None):
107107
"""
108-
Rename a gate in the gating strategy. Any descendant gates will also be removed
109-
unless keep_children=True. In all cases, if a BooleanGate exists that references
110-
the gate to remove, a GateTreeError will be thrown indicating the BooleanGate
111-
must be removed prior to removing the gate.
108+
Rename a gate in the gating strategy. Any custom sample gates associated with the gate
109+
will also be renamed.
112110
113111
:param gate_name: text string of existing gate name
114112
:param new_gate_name: text string for new gate name

0 commit comments

Comments
 (0)