Skip to content

Commit

Permalink
skip_validation -> skip_bids_validation for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitj committed Feb 27, 2023
1 parent ddf8e80 commit 80bf788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion snakebids/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run_snakemake(self):
self.config["pybids_db_dir"] = args.pybidsdb_dir
self.config["pybids_db_reset"] = args.reset_db

self.config["skip_bids_validation"] = args.skip_validation
self.config["skip_bids_validation"] = args.skip_bids_validation

update_config(self.config, args)

Expand Down
10 changes: 5 additions & 5 deletions snakebids/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SnakebidsArgs:
Contains all the snakebids specific args. Meant to contain custom user args
defined in config, as well as dynamic --filter-xx and --wildcard-xx args.
These will eventually be printed in the new config.
skip_validation : bool
skip_bids_validation : bool
Skip bids validation of input dataset
"""

Expand All @@ -73,7 +73,7 @@ class SnakebidsArgs:
args_dict: Dict[str, Any]
pybidsdb_dir: Optional[Path] = None
reset_db: bool = False
skip_validation: bool = False
skip_bids_validation: bool = False


def create_parser(include_snakemake=False):
Expand Down Expand Up @@ -147,8 +147,8 @@ def create_parser(include_snakemake=False):
)

standard_group.add_argument(
"--skip-validation",
"--skip_validation",
"--skip-bids-validation",
"--skip_bids-validation",
action="store_true",
help=("Skip bids validation of input dataset")
)
Expand Down Expand Up @@ -283,7 +283,7 @@ def parse_snakebids_args(parser: argparse.ArgumentParser):
else Path(all_args[0].pybidsdb_dir).resolve()
),
reset_db=all_args[0].reset_db,
skip_bids_validation=all_args[0].skip_validation,
skip_bids_validation=all_args[0].skip_bids_validation,
)


Expand Down

0 comments on commit 80bf788

Please sign in to comment.