From 151f25adf46ed61d275a6544e35ef28ceb99b8d2 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 3 Nov 2022 13:20:59 -0400 Subject: [PATCH] DOC: codespell fix a few typos in code comments --- heudiconv/heuristics/multires_7Tbold.py | 2 +- heudiconv/tests/test_heuristics.py | 4 ++-- heudiconv/tests/test_queue.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/heudiconv/heuristics/multires_7Tbold.py b/heudiconv/heuristics/multires_7Tbold.py index 0489b00d..9bbbf06d 100644 --- a/heudiconv/heuristics/multires_7Tbold.py +++ b/heudiconv/heuristics/multires_7Tbold.py @@ -27,7 +27,7 @@ def extract_moco_params(basename, outypes, dicoms): dcm_times = [(d, float(dcm_read(d, stop_before_pixels=True).AcquisitionTime)) for d in dicoms] - # store MoCo info from image comments sorted by acqusition time + # store MoCo info from image comments sorted by acquisition time moco = ['\t'.join( [str(float(i)) for i in dcm_read(fn, stop_before_pixels=True).ImageComments.split()[1].split(',')]) for fn, t in sorted(dcm_times, key=lambda x: x[1])] diff --git a/heudiconv/tests/test_heuristics.py b/heudiconv/tests/test_heuristics.py index 740a561b..906e15f7 100644 --- a/heudiconv/tests/test_heuristics.py +++ b/heudiconv/tests/test_heuristics.py @@ -45,7 +45,7 @@ def test_smoke_convertall(tmpdir): @pytest.mark.parametrize('heuristic', ['reproin', 'convertall']) @pytest.mark.parametrize( 'invocation', [ - "--files %s" % TESTS_DATA_PATH, # our new way with automated groupping + "--files %s" % TESTS_DATA_PATH, # our new way with automated grouping "-d %s/{subject}/* -s 01-fmap_acq-3mm" % TESTS_DATA_PATH # "old" way specifying subject # should produce the same results ]) @@ -106,7 +106,7 @@ def test_reproin_largely_smoke(tmpdir, heuristic, invocation): @pytest.mark.parametrize( 'invocation', [ - "--files %s" % TESTS_DATA_PATH, # our new way with automated groupping + "--files %s" % TESTS_DATA_PATH, # our new way with automated grouping ]) def test_scans_keys_reproin(tmpdir, invocation): args = "-f reproin -c dcm2niix -o %s -b " % (tmpdir) diff --git a/heudiconv/tests/test_queue.py b/heudiconv/tests/test_queue.py index a65f4532..58f5addc 100644 --- a/heudiconv/tests/test_queue.py +++ b/heudiconv/tests/test_queue.py @@ -10,7 +10,7 @@ @pytest.mark.skipif(bool(which("sbatch")), reason="skip a real slurm call") @pytest.mark.parametrize( 'invocation', [ - "--files %s/01-fmap_acq-3mm" % TESTS_DATA_PATH, # our new way with automated groupping + "--files %s/01-fmap_acq-3mm" % TESTS_DATA_PATH, # our new way with automated grouping "-d %s/{subject}/* -s 01-fmap_acq-3mm" % TESTS_DATA_PATH # "old" way specifying subject ]) def test_queue_no_slurm(tmpdir, invocation):