Skip to content

Commit

Permalink
Fix line-length warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken authored and Karl5766 committed Jul 26, 2024
1 parent 8b73a1c commit 56100c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions snakebids/core/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ def filter(
This method allows you to expand over a subset of your wildcards. This could be
useful for extracting subjects from a specific patient group, running different
rules on different acquisitions, and any other reason you may need to filter your
data after the workflow has already started.
rules on different acquisitions, and any other reason you may need to filter
your data after the workflow has already started.
Takes entities as keyword arguments assigned to values or list of values to
select from the component. Only columns containing the provided entity-values
Expand Down
6 changes: 3 additions & 3 deletions snakebids/tests/test_generate_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,9 +1865,9 @@ def test_exclude_participant_does_not_make_all_other_filters_regex(
for comp in dataset.values()
)

# Create an extra set of paths by modifying one of the existing components to put
# foo after a set of entity values. If that filter gets changed to a regex, all
# of the suffixed decoys will get picked up by pybids
# Create an extra set of paths by modifying one of the existing components to
# put foo after a set of entity values. If that filter gets changed to a regex,
# all of the suffixed decoys will get picked up by pybids
ziplist = dict(itx.first(rooted.values()).zip_lists)
mut_entity = itx.first(
filter(lambda e: e not in {"subject", "extension"}, ziplist)
Expand Down
4 changes: 2 additions & 2 deletions snakebids/utils/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def write_output_mode(dotfile: Path, mode: Mode) -> None:
def _get_snakebids_file(outputdir: Path) -> dict[str, str] | None:
"""Ensure populated dir contains .snakebids file, retrieving it if it does.
First checks if outputdir doesn't exist or is completely empty, returning None if so.
If it does have data, it checks for a .snakebids file, returning its contents if
First checks if outputdir doesn't exist or is completely empty, returning None if
so. If it does have data, it checks for a .snakebids file, returning its contents if
found. If no .snakebids file is found, it raises an exception.
Parameters
Expand Down

0 comments on commit 56100c9

Please sign in to comment.