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

chore: refactor affiliation analysis, experiment with macro #154

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

j-lanson
Copy link
Collaborator

(new copy of PR #132 rebased off of main)

Continuation of effort on #28.

This adds affiliation to the set of analyses using the new scoring/storage system, but the main contribution of this PR is the run_and_score_threshold_analysis macro defined in score.rs. If approved, this will make converting the rest of the analyses much simpler and reduce lines of (committed) code. The macro is a bit in-elegant but we expect churn in this area of Hipcheck in the next few months anyway, I doubt this will remain for very long.

It might also be worthwhile to add a similar macro for analyses on the new system in analysis/report_builder.rs.

@j-lanson j-lanson requested review from alilleybrinker and vcfxb June 26, 2024 12:34
@alilleybrinker alilleybrinker merged commit d604c68 into main Jun 26, 2024
9 checks passed
@j-lanson j-lanson deleted the jlanson/scoring-macro branch July 31, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants