-
Notifications
You must be signed in to change notification settings - Fork 96
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
Remove RefLGR from code and refs field from decision trees #965
Conversation
missing_key seems to be specific to a missing "refs" field, so I removed that as well.
The reason there are references in the decision trees is because specific decision trees might have their own reference list. That is we want everyone who uses this code to reference the tedana JOSS pub, but if a new decision tree combines the tedana approach with the AROMA approach then they might want people to also cite AROMA and the publication that demonstrated the combination. I didn't link the reference field to anywhere else in the code, but my ideal would be to keep the field and have any references in the decision tree combine with the static references. |
In that case I think we need to support the references field as a BibTeX-formatted string rather than in-text citations, but I don't know if there's an established format for that in JSON files. It won't go through the RefLGR though. It'll have to get loaded and merged with the main BibTeX file as part of the report curation. |
I was starting to make some suggested changes, but now I think I get this. The idea is that the report field is the text added to the report and the docs now specify that it should include references in the context of the report text. The one bit of lost (non)functionality is that the goal of the json file decision tree is that people can make their own tree without needing to open a PR to the code. If someone wants to add a new reference, they'd need to make a PR to edit https://github.com/ME-ICA/tedana/blob/main/tedana/resources/references.bib That's not ideal, but, if someone is starting to publish with a new decision tree that uses new references, we'd probably want to have that reference included anyway. |
That's the one drawback of this PR. Would you like me to figure out a way to keep the |
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.
One minor and one less minor change.
Minor is just make a bit more clear where the references BibTex file is.
Less minor is that you removed the test for if a required key is missing. I put it back in, but I'm now checking to see whether report
is missing.
I think this is a net improvement. If someone has a use case for citing a reference not in the .bib file, it might be easier to just have a very low threshold for us to add references for people rather than designing a system to handle this situation. If you're fine with #968, approve it so we can merge it in. Then you can use that to make this PR pass all checks & we can then approve this as well. |
Co-authored-by: Dan Handwerker <[email protected]>
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.
Just merge the now current main into this so that the style & RTD checks pass & this should be ready to merge.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #965 +/- ##
==========================================
- Coverage 88.88% 88.86% -0.03%
==========================================
Files 27 27
Lines 3375 3368 -7
Branches 618 618
==========================================
- Hits 3000 2993 -7
Misses 227 227
Partials 148 148
☔ View full report in Codecov by Sentry. |
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
For the merging of #968 I didn't have a strong opinion about type() is
vs isinstance
but if you have a preference for isinstance
that's fine with me.
This is fairly minor. I'm fine merging with 1 review if @eurunuela or @dowdlelt don't have time to look. Maybe give until Monday for them to respond? |
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!
Thanks @handwerkerd and @eurunuela! |
Closes #962.
Changes proposed in this pull request:
RefLGR
logger.refs
field from decision trees, and move the references as BibTeX citations to thereport
field.