Skip to content

Commit

Permalink
fix spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Dec 9, 2024
1 parent 7933762 commit 2fc5c20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Option to merge TACs across runs for each subject within a single session.

#### `--docker`

Indicates the script will run within a Docker container that contains all of the necessary dependencies for this project. A version of FreeSurfer should stil be installed along with a valid license. If you have difficulty using this extra option below is an example of an "unwrapped" command to execute this pipeline in Docker.
Indicates the script will run within a Docker container that contains all of the necessary dependencies for this project. A version of FreeSurfer should still be installed along with a valid license. If you have difficulty using this extra option below is an example of an "unwrapped" command to execute this pipeline in Docker.

```bash
docker run -a stderr -a stdout --rm \
Expand Down
2 changes: 1 addition & 1 deletion petprep_extract_tacs/utils/merge_tacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def collect_and_merge_tsvs(bids_dir, subjects=[], **kwargs):
subjects_to_be_merged[subject][k] = []
subjects_to_be_merged[subject][k].append(tsv)

# now we only focuse on subjects that are specified if that's given in thes arguments
# now we only focus on subjects that are specified if that's given in these arguments
# subjects = [01, 02, ...] for this function
if subjects != []:
subjects_to_remove = list(set(subjects_to_be_merged.keys() - set(subjects)))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_merge_tacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_collect_and_merge_tsvs():
# get all tsvs with glob
all_tsvs = glob.glob(f"{tempdir}/**/*.tsv", recursive=True)

# ignore everthing that doesn't have run in it.
# ignore everything that doesn't have run in it.
unmerged_run_tsvs = [tsv for tsv in all_tsvs if "_run-" in tsv]
unmerged_run_tsvs.sort()

Expand All @@ -39,7 +39,7 @@ def test_collect_and_merge_tsvs():
merged_tsvs = collect_and_merge_tsvs(bids_dir=tempdir)
merged_tsvs = {tsv: pandas.read_csv(tsv, sep="\t") for tsv in merged_tsvs}

# check that the merged tsvs are the concatentaion of the unmerged tac tsvs same as the unmerged run tsvs
# check that the merged tsvs are the concatentation of the unmerged tac tsvs same as the unmerged run tsvs

Check failure on line 42 in tests/test_merge_tacs.py

View workflow job for this annotation

GitHub Actions / Check for spelling and formatting errors

concatentation ==> concatenation

Check failure on line 42 in tests/test_merge_tacs.py

View workflow job for this annotation

GitHub Actions / Check for spelling and formatting errors

concatentation ==> concatenation
tacs = [unmerged_run_tsvs[tsv] for tsv in unmerged_run_tsvs if "tacs" in tsv]

# add up lengths of split tacs
Expand Down

0 comments on commit 2fc5c20

Please sign in to comment.