Skip to content

Commit 4bdcf78

Browse files
committed
chore: removed unused State.names property
1 parent 117f25a commit 4bdcf78

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pydra/engine/state.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,6 @@ def __str__(self):
123123
f"and combiner: {self.combiner}"
124124
)
125125

126-
@property
127-
def names(self):
128-
"""Return the names of the states."""
129-
previous_states_keys = {
130-
f"_{v.name}": v.keys_final for v in self.inner_inputs.values()
131-
}
132-
names = []
133-
# iterating splitter_rpn
134-
for token in self.splitter_rpn:
135-
if token in [".", "*"]: # token is one of the input var
136-
continue
137-
# adding variable to the stack
138-
if token.startswith("_"):
139-
new_keys = previous_states_keys[token]
140-
names += new_keys
141-
else:
142-
names.append(token)
143-
return names
144-
145126
def depth(self, before_combine: bool = False) -> int:
146127
"""Return the number of splits of the state, i.e. the number nested
147128
state arrays to wrap around the type of lazy out fields

0 commit comments

Comments
 (0)