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

Add automatic shell detection if not provided in image/powderaverage #50

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

gagnonanthony
Copy link
Contributor

Add automatic shell detection in image/powderaverage. (#41)

@@ -21,7 +21,7 @@ process IMAGE_POWDERAVERAGE {
def prefix = task.ext.prefix ?: "${meta.id}"

def b0_thr = task.ext.b0_thr ? "--b0_thr ${task.ext.b0_thr}" : ''
def shells = task.ext.shells ? "--shells ${task.ext.shells}" : ''
def shells = task.ext.shells ? "--shells ${task.ext.shells}" : "--shells \$(cut -d ' ' --output-delimiter=\$'\\n' -f 1- $bval | awk -F' ' '{v=int(\$1)}{print v}' | uniq)"
Copy link
Collaborator

@AlexVCaron AlexVCaron Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scilpy script is doing this job itself, when no shell argument is supplied. It also controls for uneven bvalues, that is really hard to do in bash. Why do we need this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember exactly why (I should have noted it somewhere), but this fix worked. I'll try to reproduce the error and see what happens. Let's wait for merging in the meantime!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I've tried to reproduce the error again, but it seems to run fine now. I reverted the change @AlexVCaron !

@AlexVCaron
Copy link
Collaborator

LGTM !

@AlexVCaron AlexVCaron added this pull request to the merge queue Nov 22, 2024
Merged via the queue into scilus:main with commit 7b984e0 Nov 22, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants