-
Notifications
You must be signed in to change notification settings - Fork 15
[ENH] use contrast number in contrast filename #1347
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
Reviewer's Guide by SourceryThis pull request modifies the filename generation logic to include the contrast number when available. This change ensures that contrast numbers are included in the generated filenames, improving organization and traceability. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @Remi-Gau - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a unit test to verify the correct formatting of the contrast number in the filename.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1347 +/- ##
==========================================
+ Coverage 79.57% 81.76% +2.18%
==========================================
Files 285 284 -1
Lines 7742 7748 +6
Branches 40 0 -40
==========================================
+ Hits 6161 6335 +174
+ Misses 1565 1413 -152
+ Partials 16 0 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 had a quick check (I guess you know already but writing here a memo) and it seems at least in the moae demo that the label-contrastNb is not assigned because it is missing in the result structure.
Hardcoding result.contrastNb = 1; in here makes it work. I can try myself to move on but need some pointer or a hint on how to proceed.
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 CI the montage figure seems to have the label in the filename: https://github.com/cpp-lln-lab/bidspm/actions/runs/13524807083/job/37793493598?pr=1347#step:14:1087
I need to update CI so we can download and inspect the output of demo
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.
makes sensed, indeed the montage and thresholded mask are named with the label but not the nidm or the table and glass brain page and it might be because those renamed take the contast nb from a different place compared to the other resutls (fixed by manually updatin result.contrastNb = 1)
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.
yup: spend quite a bit of time trying to fix that yesterday but I did not find a clean way to fix that
Summary by Sourcery
Enhancements: