Skip to content

Commit

Permalink
fix for tar inputs (#9)
Browse files Browse the repository at this point in the history
bug introduced when renaming rules
  • Loading branch information
akhanf authored Feb 23, 2024
1 parent 43b5760 commit 73c1427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_input_dataset(wildcards):

elif tarfile.is_tarfile(dataset_path):
# dataset was a tar file, so point to the extracted folder
return rules.get_dataset.output.ome_dir.format(**wildcards)
return rules.extract_dataset.output.ome_dir.format(**wildcards)

else:
print(f"unsupported input: {dataset_path}")
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/import.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rule extract_dataset:
bids(
root="logs",
subject="{subject}",
datatype="get_dataset",
datatype="extract_dataset",
sample="{sample}",
acq="{acq}",
desc="raw",
Expand Down

0 comments on commit 73c1427

Please sign in to comment.