File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ class Dcm2niix(CommandLine):
244244 >>> converter.inputs.single_file = True
245245 >>> converter.inputs.output_dir = '.'
246246 >>> converter.cmdline
247- 'dcm2niix -b y -z i -m n -f %t%p -o . -s y -v n -x n -t n functional_1.dcm'
247+ 'dcm2niix -b y -z i -x n -t n - m n -f %t%p -o . -s y -v n functional_1.dcm'
248248 """
249249
250250 input_spec = Dcm2niixInputSpec
Original file line number Diff line number Diff line change @@ -393,7 +393,8 @@ def test_cmdline_profiling(self):
393393
394394 # Assert runtime stats are what was input
395395 self .assertLessEqual (runtime_gb_err , allowed_gb_err , msg = mem_err )
396- self .assertEqual (expected_runtime_threads , runtime_threads , msg = threads_err )
396+ self .assertTrue (abs (expected_runtime_threads - runtime_threads ) <= 1 ,
397+ msg = threads_err )
397398
398399 # Test resources were used as expected
399400 @unittest .skipIf (run_profiler == False , skip_profile_msg )
@@ -434,7 +435,8 @@ def test_function_profiling(self):
434435
435436 # Assert runtime stats are what was input
436437 self .assertLessEqual (runtime_gb_err , allowed_gb_err , msg = mem_err )
437- self .assertEqual (expected_runtime_threads , runtime_threads , msg = threads_err )
438+ self .assertTrue (abs (expected_runtime_threads - runtime_threads ) <= 1 ,
439+ msg = threads_err )
438440
439441
440442# Command-line run-able unittest module
You can’t perform that action at this time.
0 commit comments