@@ -222,7 +222,7 @@ def checksum(self):
222
222
self .inputs ._graph_checksums = [nd .checksum for nd in self .graph_sorted ]
223
223
224
224
input_hash = self .inputs .hash
225
- if self .state is None or self . state . splitter_rpn == [] :
225
+ if self .state is None :
226
226
self ._checksum = create_checksum (self .__class__ .__name__ , input_hash )
227
227
else :
228
228
# including splitter in the hash
@@ -329,7 +329,7 @@ def cache_locations(self, locations):
329
329
@property
330
330
def output_dir (self ):
331
331
"""Get the filesystem path where outputs will be written."""
332
- if self .state and self . state . splitter_rpn :
332
+ if self .state :
333
333
return [self ._cache_dir / checksum for checksum in self .checksum_states ()]
334
334
return self ._cache_dir / self .checksum
335
335
@@ -342,7 +342,7 @@ def __call__(self, submitter=None, plugin=None, rerun=False, **kwargs):
342
342
plugin = plugin or self .plugin
343
343
if plugin :
344
344
submitter = Submitter (plugin = plugin )
345
- elif self .state and self . state . splitter_rpn :
345
+ elif self .state :
346
346
submitter = Submitter ()
347
347
348
348
if submitter :
@@ -512,7 +512,7 @@ def done(self):
512
512
# if any of the field is lazy, there is no need to check results
513
513
if is_lazy (self .inputs ):
514
514
return False
515
- if self .state and self . state . splitter_rpn :
515
+ if self .state :
516
516
# TODO: only check for needed state result
517
517
if self .result () and all (self .result ()):
518
518
return True
@@ -556,7 +556,7 @@ def result(self, state_index=None):
556
556
"""
557
557
# TODO: check if result is available in load_result and
558
558
# return a future if not
559
- if self .state and self . state . splitter_rpn :
559
+ if self .state :
560
560
if state_index is None :
561
561
# if state_index=None, collecting all results
562
562
if self .state .combiner :
@@ -753,7 +753,10 @@ def create_connections(self, task):
753
753
self .graph .add_edges ((getattr (self , val .name ), task ))
754
754
logger .debug ("Connecting %s to %s" , val .name , task .name )
755
755
756
- if getattr (self , val .name ).state :
756
+ if (
757
+ getattr (self , val .name ).state
758
+ and getattr (self , val .name ).state .splitter_rpn_final
759
+ ):
757
760
# adding a state from the previous task to other_states
758
761
other_states [val .name ] = (
759
762
getattr (self , val .name ).state ,
0 commit comments