Skip to content

Commit 43a09af

Browse files
committed
refact(net): rename net.pruned() --> narrowed()
1 parent 664e1b2 commit 43a09af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graphtik/netop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
:raises ValueError:
6868
see :meth:`narrowed()`
6969
"""
70-
## Set data asap, for debugging, although `pruned()` will reset them.
70+
## Set data asap, for debugging, although `net.narrowed()` will reset them.
7171
self.name = name
7272
self.inputs = inputs
7373
self.provides = outputs
@@ -79,7 +79,7 @@ def __init__(
7979
self.outputs = outputs
8080

8181
# Prune network
82-
self.net = net.pruned(inputs, outputs, predicate)
82+
self.net = net.narrowed(inputs, outputs, predicate)
8383
self.name, self.needs, self.provides = reparse_operation_data(
8484
self.name, self.net.needs, self.net.provides
8585
)

graphtik/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ def _prune_graph(
788788

789789
return pruned_dag, broken_edges, tuple(inputs), tuple(outputs)
790790

791-
def pruned(
791+
def narrowed(
792792
self,
793793
inputs: Items = None,
794794
outputs: Items = None,

0 commit comments

Comments
 (0)