We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d004b83 commit 1b0c69aCopy full SHA for 1b0c69a
nipype/pipeline/engine.py
@@ -1205,6 +1205,11 @@ def hash_exists(self, updatehash=False):
1205
# of the dictionary itself.
1206
hashed_inputs, hashvalue = self._get_hashval()
1207
outdir = self.output_dir()
1208
+ hashfiles = glob(os.path.join(outdir, '*.json'))
1209
+ if len(hashfiles) > 1:
1210
+ warn('Removing multiple hashfiles and forcing node to rerun')
1211
+ for hashfile in hashfiles:
1212
+ os.unlink(hashfile)
1213
hashfile = os.path.join(outdir, '_0x%s.json' % hashvalue)
1214
if updatehash and os.path.exists(outdir):
1215
logger.debug("Updating hash: %s" % hashvalue)
0 commit comments