-
Notifications
You must be signed in to change notification settings - Fork 2
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
Multiple issues: make offspring_dist
accept a function
#188
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #188 +/- ##
==========================================
- Coverage 99.45% 98.90% -0.55%
==========================================
Files 8 8
Lines 546 548 +2
==========================================
- Hits 543 542 -1
- Misses 3 6 +3 ☔ View full report in Codecov by Sentry. |
Might need updating in line with #190 |
LGTM. Thanks for the change. I believe it resolves #50 as well. |
Oh, I just merged that. You can rebase on |
3 in one go! |
Please feel free to rebase and merge. |
@sbfnk Do you mind me merging this? |
The issue number in the title undersells the change as it resolves 3 related issues, so it might be better to either add the others or remove the current one. |
offspring_dist
accept a function offspring_dist
accept a function
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, it looks like a good change. I have left a couple of minor comments inline.
d77282e
to
9953900
Compare
Not immediately clear to me why the R CMD CHECK action fails as it seems to run the previous version of code in the examples. |
The branch needs to be rebased and the following examples updated: Lines 433 to 443 in d3e8d85
Lines 455 to 464 in d3e8d85
Lines 487 to 505 in d3e8d85
|
Thanks but these are no longer present in 9953900 which failed the checks. I'm confused. |
95c0c25
to
9953900
Compare
Does the action not check out a force pushed version? |
Co-authored-by: Hugo Gruson <[email protected]>
Thanks - I had no idea action were checking merge commits. |
NEWS.md
This PR changes the
offspring_dist
argument oflikelihood
andsimulate_chains
to expect a function instead of a character string.Yes. No version has been released yet so not going through a deprecation cycle.
Doing this necessitated two further changes:
construct_offspring_ll_name
function and instead integrate the code intolikelihood
; because of the way the function name is extracted from theoffspring_dist
argument (usingsubstitute
) this can't be passed on to lower level functions; as this function was only used in this one instance I think we can live with the lossrgborel
function; this is a difference from previous behaviour, where thell
function name could be informed from the string passed and now it needs a function with that name; the function itself is not actually called when estimating the likelihood if the correspondingll
function exists so this could, in principle, be an empty dummy function; however, for documentation/clarity purposes it is probably a good idea to have this function anywayCloses #25
Closes #167