Skip to content
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

Add check of a component metric is used that includes n/a values #922

Open
handwerkerd opened this issue Dec 22, 2022 · 0 comments
Open
Labels
bug issues describing a bug or error found in the project effort: medium Theoretically <40h total work impact: medium Improves code/documentation functionality for some users priority: medium Should get addressed soon

Comments

@handwerkerd
Copy link
Member

Summary

It is possible to use metrics in the component table that have n/a or None values for some components. With the added decision tree modularization #756, if a conditional statement test includes components with n/a values then the result will always be False A check to throw an error rather than returning False should be added. While this could be considerd a bug, this is not an urgent problem because this scenario is impossible with the decision trees that are included with tedana.

Additional Detail

The kundu decision tree calculate a few metrics on a subset of components and then classifies components within that subset. The minimal tree doesn't add components so this issue can never arise there.

One potential way to address this issue is to add used_metrics as a parameter into selectcomps2use. Then, after the selected components are identified, if n/a or None are the values for any of the used_metrics, an error should be returned. Tree should be designed so that this is impossible, so it's better to throw an error that says there's a problem with a decision tree.

Next Steps

  • Decide where to prioritize this.
@handwerkerd handwerkerd added bug issues describing a bug or error found in the project priority: medium Should get addressed soon effort: medium Theoretically <40h total work impact: medium Improves code/documentation functionality for some users labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues describing a bug or error found in the project effort: medium Theoretically <40h total work impact: medium Improves code/documentation functionality for some users priority: medium Should get addressed soon
Projects
None yet
Development

No branches or pull requests

1 participant