-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat append arglist to srun #8
Conversation
I worked under multiple branches for the attached issues, but I forgot to create a pull request for the default config commit. This PR covers the following features:
|
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.
Looks great! I added few comments ut this is pretty close!
x2b_default_config.toml
Outdated
|
||
[xnat2bids-args] | ||
session = "XNAT_E00114" | ||
bids_root = "/gpfs/data/bnc/shared/bids-export/" |
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.
I think the defaults should match the defaults in our docs
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.
is /gpfs/data/bnc/shared/bids-export/
our default? Maybe we should also make it in the $USER
home so we don't have to manage cleaning up of bcc's folder
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.
So close!
@@ -0,0 +1,22 @@ | |||
[slurm-args] |
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.
commit the values that we have good defaults for
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.
I'm sorry I keep suggesting stuff. Getting there! Love the changes you made to the compilation of args, volume bindings and logging
x2b_default_config.toml
Outdated
|
||
[xnat2bids-args] | ||
session = "XNAT_E00114" | ||
bids_root = "/gpfs/data/bnc/shared/bids-export/" |
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.
is /gpfs/data/bnc/shared/bids-export/
our default? Maybe we should also make it in the $USER
home so we don't have to manage cleaning up of bcc's folder
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.
Even closer. Tiny changes left. I'm changing my mind here, but maybe the default config should have good defaults for any example, in that case, the session is probably best not part of the default
bids_root_dir="" | ||
host="https://xnat.bnc.brown.edu" | ||
session-suffix=-1 | ||
bidsmap-file="/gpfs/data/bnc/shared/scripts/fmcdona4/bidsmap.json" |
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.
I don't see this file in Oscar. That location has a txt but it's not the bidsmap format. Also I don't think we are using a bidsmap file for demodat
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.
Here, bidsmap-file is just dummy data, testing that bidsmap filepaths are being correctly adding to bindings. In test_xnat2bids.py, I'm only asserting that the filepath has been added to bindings after making a call to compileArgumentList
.
tests/x2b_test_config.toml
Outdated
nodes = 1 | ||
cpus-per-task = 2 | ||
job-name = "xnat2bids" | ||
output = "/gpfs/data/bnc/scratch/logs/%J.txt" |
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.
output = "/gpfs/data/bnc/scratch/logs/%J.txt" | |
output = "/gpfs/scratch/%u/logs/xnat2bids_test%J.log" |
mem = 16000 | ||
nodes = 1 | ||
cpus-per-task = 2 | ||
job-name = "xnat2bids" |
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.
job-name = "xnat2bids" | |
job-name = "xnat2bids" | |
output = "/gpfs/scratch/%u/logs/xnat2bids%J.log" |
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.
In PR #11, I'm not specifying an output
parameter in slurm-args
, so that I can add the session # to the logging statements.
if not ('output' in arg_dict['slurm-args']):
output = f"/users/{user}/logs/%x-{session}-%J.txt"
arg = f"--output {output}"
slurm_param_list.append(arg)
But I like the idea of using %u, and letting slurm define user here. Should logs go to scratch/user/logs
vs. /users/user/logs
?
Co-authored-by: Maria Isabel Restrepo <[email protected]>
Co-authored-by: Maria Isabel Restrepo <[email protected]>
Co-authored-by: Maria Isabel Restrepo <[email protected]>
Co-authored-by: Maria Isabel Restrepo <[email protected]>
Co-authored-by: Maria Isabel Restrepo <[email protected]>
Feat batch multiple sessions
No description provided.