diff --git a/CHANGES b/CHANGES index 96711749e0..d396baebae 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ Next release ============ +* FIX: Minor bugfix logging hash differences (https://github.com/nipy/nipype/pull/1298) * FIX: Use released Prov python library (https://github.com/nipy/nipype/pull/1279) * ENH: Support for Python 3 (https://github.com/nipy/nipype/pull/1221) * FIX: VTK version check missing when using tvtk (https://github.com/nipy/nipype/pull/1219) diff --git a/nipype/utils/logger.py b/nipype/utils/logger.py index 4c69af5822..38edd8e1e6 100644 --- a/nipype/utils/logger.py +++ b/nipype/utils/logger.py @@ -87,6 +87,13 @@ def logdebug_dict_differences(self, dold, dnew, prefix=""): typical use -- log difference for hashed_inputs """ + # First check inputs, since they usually are lists of tuples + # and dicts are required. + if isinstance(dnew, list): + dnew = dict(dnew) + if isinstance(dold, list): + dold = dict(dold) + # Compare against hashed_inputs # Keys: should rarely differ new_keys = set(dnew.keys())