-
Notifications
You must be signed in to change notification settings - Fork 25
[ENH] Add --tar
option to nipoppy run
#430
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
Conversation
# load tracker configs from file | ||
fpath_tracker_config = self.pipeline_step_config.TRACKER_CONFIG_FILE | ||
if fpath_tracker_config is None: | ||
raise ValueError( | ||
f"No tracker config file specified for pipeline {self.pipeline_name}" | ||
f" {self.pipeline_version}" | ||
) | ||
# replace template strings |
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.
Moved to BasePipelineWorkflow
Codecov ReportAll modified and coverable lines are covered by tests ✅
🚀 New features to boost your workflow:
|
@@ -113,7 +117,7 @@ def test_run_failed_cleanup(tmp_path: Path, n_success, config: Config): | |||
) | |||
runner.n_success = n_success | |||
runner.n_total = 2 | |||
config.save(runner.layout.fpath_config) | |||
runner.config = config |
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.
Cleanup
if self.tracker_config.PARTICIPANT_SESSION_DIR is None: | ||
raise RuntimeError( | ||
"Tarring requested but no participant-session directory specified. " | ||
"The PARTICIPANT_SESSION_DIR field in the tracker config must set " |
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.
Overall, I find the PARTICIPANT_SESSION_DIR
confusing. It's not explicit that it's for the TAR dir.
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.
Ok, I named it like this because I thought this could be multi-purpose for derivatives discovery: if we add this path to the imaging bagel file then Neurobagel would know where to find the derivatives data (when building cohorts for example). But will ask around and see if there is a better name we could use
Changes proposed in this pull request:
PARTICIPANT_SESSION_DIR
PATHS
or existence of a tarball atPARTICIPANT_SESSION_DIR
+.tar
. We could also include this path in the imaging bagel file, which would be useful for Neurobagel (but that is for a future PR)--tar
is set and the processing pipeline run is successful,PARTICIPANT_SESSION_DIR
will be tarred into an archive of the same name (+.tar
extension) and the original directory will be deletedChecklist (for reviewers)
This section is for the PR reviewer
[BUG]
,[DOC]
,[ENH]
,[MAINT]
)Refer to NumPy Development Guide for a full list
Closes #XXXX
For new features:
For bug fixes:
There is at least one test that would fail under the original bug conditions