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 56ab01e commit a86d140Copy full SHA for a86d140
nipype/utils/filemanip.py
@@ -675,7 +675,7 @@ def loadcrash(infile, *args):
675
raise ValueError('Only pickled crashfiles are supported')
676
677
678
-def loadpkl(infile):
+def loadpkl(infile, versioning=False):
679
"""Load a zipped or plain cPickled file."""
680
infile = Path(infile)
681
fmlogger.debug('Loading pkl: %s', infile)
@@ -700,6 +700,9 @@ def loadpkl(infile):
700
fmlogger.info('Successfully loaded pkl in compatibility mode.')
701
# Unpickling problems
702
except Exception as e:
703
+ if not versioning:
704
+ raise e
705
+
706
if pkl_metadata and 'version' in pkl_metadata:
707
from nipype import __version__ as version
708
if pkl_metadata['version'] != version:
0 commit comments