-
Notifications
You must be signed in to change notification settings - Fork 4
TST: Do not remove fMRI notebook from list of discovered notebooks #117
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
base: main
Are you sure you want to change the base?
TST: Do not remove fMRI notebook from list of discovered notebooks #117
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #117 +/- ##
=======================================
Coverage 71.19% 71.19%
=======================================
Files 23 23
Lines 1045 1045
Branches 121 121
=======================================
Hits 744 744
Misses 259 259
Partials 42 42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Looks like as it fails at:
It also happened when I tried to run the notebook locally. Did not investigate further. |
2f60d2e
to
f0569bc
Compare
I just filed an issue reporting what you see nipreps/synthstrip#11 Now, you can configure the model to reside under a FreeSurfer home directory (which can be empty except for the model itself) https://github.com/nipreps/synthstrip/blob/dd29a6c751f6c9cc8a31983d8bfbc82d1d97c4a6/nipreps/synthstrip/wrappers/nipype.py#L38 or, you can set an input on the interface: nifreeze/docs/notebooks/bold_realignment.ipynb Lines 78 to 81 in 1cef030
Instead of: bmsk_results = SynthStrip(
in_file=str(avg_path),
use_gpu=True,
).run(cwd=str(WORKDIR)) you add a bmsk_results = SynthStrip(
in_file=str(avg_path),
use_gpu=True,
model='/path/to/synthstripmodel.pt',
).run(cwd=str(WORKDIR)) |
f0569bc
to
e894222
Compare
Re #117 (comment) thanks. Let's see what the CI says: |
e894222
to
0135322
Compare
@oesteban Seems we are still missing something: Suggestions are welcome. |
I guess we'll need to close nipreps/synthstrip#11 to print out where the file is being sought |
16d4ee7
to
83f248d
Compare
I must be missing something very evident, but the model weights file is still not being found. The file is being downloaded properly at the testing data location: @oesteban Sorry, I am at a loss here about what else to check. Suggestions are welcome. |
Okay you added a specific test before entering the interface. However, the test is failing because it expects a folder. |
34d7b98
to
a65c768
Compare
This is proving time-consuming and challenging to debug 😔. My last bet would be to convert the notebook to a python script and to have it tested as such in the CI. This fsiled locally because Python didn't like |
cca464f
to
af23400
Compare
@oesteban OK, now errors make sense and I should have realized earlier: the issue is CUDA drivers:
https://github.com/nipreps/nifreeze/actions/runs/15006593539/job/42166634496?pr=117#step:14:1341 Thoughts:
|
af23400
to
e2ae7d0
Compare
e2ae7d0
to
0d97756
Compare
5a438de
to
e5f6d0f
Compare
After discussing this offline, it looks like some commit was missed when contributing the notebook and some cell is missing. I will open a separate PR to:
I will go ahead and merge the new PR as soon as I see that we are stuck in the same point as here. I will open a separate PR to try to install the CUDA drivers so that the notebook can run more quickly. We will then continue here or close this PR. |
e5f6d0f
to
bc840bc
Compare
Do not remove fMRI notebook from list of discovered notebooks: this will allow running the notebook at the time scheduled by the
notebooks.yml
GHA workflow file.