Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: codespell fix a few typos in code comments #605

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion heudiconv/heuristics/multires_7Tbold.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand Down
4 changes: 2 additions & 2 deletions heudiconv/tests/test_heuristics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
])
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion heudiconv/tests/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down