Skip to content

Commit 1794004

Browse files
committed
removing _hash_infile (not used)
1 parent 3549566 commit 1794004

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

nipype/interfaces/base/specs.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -151,29 +151,6 @@ def _deprecated_warn(self, obj, name, old, new):
151151
'%s' % trait_spec.new_name: new
152152
})
153153

154-
def _hash_infile(self, adict, key):
155-
""" Inject file hashes into adict[key]"""
156-
stuff = adict[key]
157-
if not is_container(stuff):
158-
stuff = [stuff]
159-
file_list = []
160-
for afile in stuff:
161-
if is_container(afile):
162-
hashlist = self._hash_infile({'infiles': afile}, 'infiles')
163-
hash = [val[1] for val in hashlist]
164-
else:
165-
if config.get('execution',
166-
'hash_method').lower() == 'timestamp':
167-
hash = hash_timestamp(afile)
168-
elif config.get('execution',
169-
'hash_method').lower() == 'content':
170-
hash = hash_infile(afile)
171-
else:
172-
raise Exception("Unknown hash method: %s" % config.get(
173-
'execution', 'hash_method'))
174-
file_list.append((afile, hash))
175-
return file_list
176-
177154
def get(self, **kwargs):
178155
""" Returns traited class as a dict
179156

0 commit comments

Comments
 (0)