Skip to content

Commit 5733af9

Browse files
committed
Fixed hsarc related to yrt blocking
1 parent 7b3d19f commit 5733af9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

nipype/interfaces/tests/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_selectfiles_valueerror():
113113
yield assert_raises, ValueError, sf.run
114114

115115

116-
@skip
116+
@skipif(noboto)
117117
def test_s3datagrabber_communication():
118118
dg = nio.S3DataGrabber(
119119
infields=['subj_id', 'run_num'], outfields=['func', 'struct'])

nipype/interfaces/utility.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,14 @@ def _run_interface(self, runtime):
450450
args[name] = value
451451

452452
# Record memory of function_handle
453-
try:
454-
import memory_profiler
455-
proc = (function_handle, (), args)
456-
mem_mb, out = memory_profiler.memory_usage(proc=proc, retval=True, include_children=True, max_usage=True)
457-
setattr(runtime, 'cmd_memory', mem_mb[0]/1024.0)
458-
# If no memory_profiler package, run without recording memory
459-
except ImportError:
460-
out = function_handle(**args)
453+
#try:
454+
# import memory_profiler
455+
# proc = (function_handle, (), args)
456+
# mem_mb, out = memory_profiler.memory_usage(proc=proc, retval=True, include_children=True, max_usage=True)
457+
# setattr(runtime, 'cmd_memory', mem_mb[0]/1024.0)
458+
## If no memory_profiler package, run without recording memory
459+
#except:
460+
out = function_handle(**args)
461461

462462
if len(self._output_names) == 1:
463463
self._out[self._output_names[0]] = out

0 commit comments

Comments
 (0)