@@ -138,17 +138,15 @@ def splitter_final(self):
138
138
def splitter_rpn (self ):
139
139
# TODO NOW: this also changes other_states (properly, but should be explicite)
140
140
_splitter_rpn = hlpst .splitter2rpn (
141
- deepcopy ( self .splitter ) , other_states = self .other_states
141
+ self .splitter , other_states = self .other_states
142
142
)
143
143
return _splitter_rpn
144
144
145
145
@property
146
146
def splitter_rpn_compact (self ):
147
147
if self .other_states :
148
148
_splitter_rpn_compact = hlpst .splitter2rpn (
149
- deepcopy (self .splitter ),
150
- other_states = self .other_states ,
151
- state_fields = False ,
149
+ self .splitter , other_states = self .other_states , state_fields = False
152
150
)
153
151
return _splitter_rpn_compact
154
152
else :
@@ -175,7 +173,7 @@ def left_splitter(self):
175
173
def left_splitter_rpn (self ):
176
174
if self .left_splitter :
177
175
left_splitter_rpn = hlpst .splitter2rpn (
178
- deepcopy ( self .left_splitter ) , other_states = self .other_states
176
+ self .left_splitter , other_states = self .other_states
179
177
)
180
178
return left_splitter_rpn
181
179
else :
@@ -186,9 +184,7 @@ def left_splitter_rpn_compact(self):
186
184
# left rpn part, but keeping the names of the nodes, e.g. [_NA, _NB, *]
187
185
if self .left_splitter :
188
186
left_splitter_rpn_compact = hlpst .splitter2rpn (
189
- deepcopy (self .left_splitter ),
190
- other_states = self .other_states ,
191
- state_fields = False ,
187
+ self .left_splitter , other_states = self .other_states , state_fields = False
192
188
)
193
189
return left_splitter_rpn_compact
194
190
else :
@@ -274,7 +270,6 @@ def update_connections(self, new_other_states=None, new_combiner=None):
274
270
if new_other_states :
275
271
self .other_states = new_other_states
276
272
self ._connect_splitters ()
277
- self .splitter_rpn # TODO: temporary fix
278
273
if new_combiner :
279
274
self .combiner = new_combiner
280
275
self .set_input_groups ()
@@ -367,7 +362,7 @@ def _left_right_check(self, splitter_part, check_nested=True):
367
362
def set_input_groups (self , state_fields = True ):
368
363
"""Evaluate groups, especially the final groups that address the combiner."""
369
364
right_splitter_rpn = hlpst .splitter2rpn (
370
- deepcopy ( self .right_splitter ) ,
365
+ self .right_splitter ,
371
366
other_states = self .other_states ,
372
367
state_fields = state_fields ,
373
368
)
0 commit comments