diff --git a/snakebids/core/datasets.py b/snakebids/core/datasets.py index 4fd936f5..42458641 100644 --- a/snakebids/core/datasets.py +++ b/snakebids/core/datasets.py @@ -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 diff --git a/snakebids/tests/test_generate_inputs.py b/snakebids/tests/test_generate_inputs.py index b8900bbc..a645bffb 100644 --- a/snakebids/tests/test_generate_inputs.py +++ b/snakebids/tests/test_generate_inputs.py @@ -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) diff --git a/snakebids/utils/output.py b/snakebids/utils/output.py index 4f4bb3a9..eee46fa2 100644 --- a/snakebids/utils/output.py +++ b/snakebids/utils/output.py @@ -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