-
Notifications
You must be signed in to change notification settings - Fork 95
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] The rationale column of comptable gets updated when no manacc is given #855
Conversation
Codecov Report
@@ Coverage Diff @@
## main #855 +/- ##
=======================================
Coverage 93.27% 93.28%
=======================================
Files 27 27
Lines 2217 2218 +1
=======================================
+ Hits 2068 2069 +1
Misses 149 149
Continue to review full report at Codecov.
|
tedana/workflows/tedana.py
Outdated
manacc = comptable.index[comptable["classification"] == "accepted"].tolist() | ||
comptable, metric_metadata = selection.manual_selection(comptable, acc=manacc) |
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 think we can assume that an updated component table reflects manual classification. For example, if we get AROMA working, we could run the same data through both tedana and AROMA to produce merged classifications derived from both workflows.
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.
Okay, would you be happy if we updated the rationale column instead?
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.
Hopefully once we have the decision tree refactor done and have switched from rationales to the messages we plan to use, we can just require classification tools to update that information. In the mean time, I think your empty string solution is great. On RICA's side, could you update the rationale column as well?
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 agree things will be different soon, but users need a fix now.
Re Rica: I could make Rica update the rationale to say "manual" or something similar.
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.
Yes, if Rica could updated the rationale for any component with an updated classification, that would be optimal. "Manual" or "I001" would both work well.
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.
Will work on adding that to Rica, maybe while I do some scanning tomorrow.
Thanks for the feedback Taylor!
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.
PR #42 in Rica adds this functionality.
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.
LGTM!
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.
Some of this might get superseded by the changes with the decision tree modularization, but this is a good change for the current code.
Thank you Dan! Just wanna make sure users using the current version don't run into issues :) Edit: merging now. |
Closes #854 .
Changes proposed in this pull request:
ctab
is Rica's by looking at the column names.comptable
withselection.manual_selection(comptable, acc=manacc)
.