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

Remove evaluation recording from riskmetric assessments #810

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

jthompson-arcus
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.92%. Comparing base (ed016fc) to head (dcb0728).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #810      +/-   ##
==========================================
+ Coverage   81.89%   81.92%   +0.03%     
==========================================
  Files          36       36              
  Lines        6698     6711      +13     
==========================================
+ Hits         5485     5498      +13     
  Misses       1213     1213              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jthompson-arcus
Copy link
Collaborator Author

jthompson-arcus commented Aug 2, 2024

@aclark02-arcus I really don't like this solution. I went down quite the rabbit hole to get here and further to look for a better answer, but I can't find one. We can't just simply remove the .recording attribute and with_eval_recording class because the vctrs package is being used to create the pkg_metric objects. (Even if we could, that solution isn't very good either because it relies on these objects being relatively immutable). The usage of the vctrs package effectively hijacks all inner assignment type calls and forces them to conform to a particular behavior which is why each assessment has to be rebuilt using structure(). If we want a none hacky solution to this problem, I think we are going to have to get it solved upstream in the riskmetric repo.

@aclark02-arcus
Copy link
Collaborator

we are going to have to get it solved upstream in the riskmetric repo

Ya, let's make Eric aware. For now, I will mark this as 'ready for review' and test it out later today.

@aclark02-arcus aclark02-arcus marked this pull request as ready for review August 4, 2024 11:58
@aclark02-arcus aclark02-arcus self-requested a review August 4, 2024 11:58
@aclark02-arcus aclark02-arcus merged commit 3148426 into dev Aug 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants