-
Notifications
You must be signed in to change notification settings - Fork 4
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
[MNT] Removed session_file_path
from aggregate results
#214
Conversation
Pull Request Test Coverage Report for Build 6789540380
💛 - Coveralls |
This reverts commit e30103f.
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.
Thanks for the PR @rmanaem. I have a few implementation questions:
- A quick test of a local aggregate-mode API with your changes shows that the
subject_data
field still appears in the response, just as an empty list[]
. Should we remove this key entirely from the aggregate response to avoid API user confusion? Or maybe populate it with an informative value like"protected"
? - I noticed that this logic is still kicking around - not sure if we need it anymore
Lines 140 to 144 in 47d3b7e
if util.RETURN_AGG.val: subject_data = list( {"session_file_path": file_path} for file_path in group["session_file_path"].dropna() ) - I see you reverted your initial change to the
test_data
aggregate response fixture, but I am in favour of updating it to reflect what the actual aggregate response looks like - wdyt?
Happy to have a chat about these decisions if that'd be helpful.
I like the
Great catch, I'll get rid of that.
I don't have a preference but If we were to do that I'd say both subjects in the |
I think so, although you probably have a better sense of what would work best with the query tool. Since the API currently always expects a list of dicts for Line 63 in 47d3b7e
I'm even wondering if we should just return
Yes, since the fixture represents a single response I think all the subjects should be updated! |
Yea that's why I prefer not removing the
I had completely forgotten about that. I like the idea of extending the model to accept string values 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 think this looks good! 🧑🍳
Closes #210
Changes proposed in this pull request:
create_query
function to not querysession_file_path
Checklist
[ENH]
,[FIX]
,[REF]
,[TST]
,[CI]
,[MNT]
,[INF]
,[MODEL]
,[DOC]
) (see https://neurobagel.org/contributing/pull_requests for more info)Closes #XXXX
For new features:
For bug fixes: