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

Fix error caused by argument name 'type' confusion #479

Merged
merged 1 commit into from
Jun 12, 2024
Merged
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
12 changes: 6 additions & 6 deletions datalad_catalog/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Workflow(ValidatedInterface):
),
mode=Parameter(
# cmdline argument definitions, incl aliases
args=("-t", "--type"),
args=("-m", "--mode"),
# documentation
doc="""Which type of workflow to run: one of ['new', 'update']""",
),
Expand Down Expand Up @@ -193,7 +193,7 @@ class Workflow(ValidatedInterface):
"dataset='path/to/superdataset', extractor='metalad_core')"
),
code_cmd=(
"datalad catalog-workflow -t new -c /tmp/my-cat "
"datalad catalog-workflow -m new -c /tmp/my-cat "
"-d path/to/superdataset -e metalad_core"
),
),
Expand All @@ -208,7 +208,7 @@ class Workflow(ValidatedInterface):
"extractor='metalad_core')"
),
code_cmd=(
"datalad catalog-workflow -t new -c /tmp/my-cat "
"datalad catalog-workflow -m update -c /tmp/my-cat "
"-d path/to/superdataset -s path/to/subdataset -e metalad_core"
),
),
Expand Down Expand Up @@ -244,7 +244,7 @@ def __call__(
)
if mode == "new":
yield from super_workflow(
ds=dataset,
ds=dataset.ds,
cat=catalog,
extractors=extractor,
config_file=config_file,
Expand All @@ -253,8 +253,8 @@ def __call__(
)
if mode == "update":
yield from update_workflow(
superds=dataset,
subds=subdataset,
superds=dataset.ds,
subds=subdataset.ds,
catalog=catalog,
extractors=extractor,
**res_kwargs,
Expand Down
Loading