-
Notifications
You must be signed in to change notification settings - Fork 14
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] update cli for preprocess #1190
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash | ||
|
||
# script to run the demo via the command line | ||
cd ../.. | ||
|
||
bidspm demos/openneuro/inputs/ds000001 demos/openneuro/outputs/ds000001/derivatives subject \ | ||
--action preprocess \ | ||
--task balloonanalogrisktask \ | ||
--fwhm 8 \ | ||
--participant_label 01 02 03 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -429,9 +429,11 @@ def run_command(cmd: str, platform: str | None = None) -> int: | |
|
||
if platform is None: | ||
if Path(matlab()).exists(): | ||
log.info(f"Using matlab found at: {matlab()}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (llm): Logging the path to the Matlab executable is a good practice for debugging. However, calling |
||
platform = matlab() | ||
cmd = cmd.replace(new_line, ", ") | ||
else: | ||
log.info("Using octave") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (llm): Consistency in logging is important for maintainability. Consider adding the path to the octave executable, similar to how the path to Matlab is logged. |
||
platform = "octave" | ||
|
||
if platform == "octave": | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (llm): Ensure that the participant labels are correctly formatted and that leading zeros do not imply octal interpretation in any context where these values are used.