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

implemented subsetting in recalculateResiduals #246

Merged
merged 8 commits into from
Mar 3, 2021

Conversation

florianhartig
Copy link
Owner

related #245

@florianhartig
Copy link
Owner Author

Hi @EttnerAndreas - can perform a review for this PR, meaning that you look at the code if it makes sense, try out if everything works etc.?

I should probably add a bit of documentation before we merge as well.

@EttnerAndreas
Copy link
Contributor

Hi @florianhartig
I recently added a new branch (#246) with some tests @https://github.com/florianhartig/DHARMa/tree/%23246
After a lot of tests, it looks like everything is working good and #246 can be merged and closed.
In addition you could add the branch #246 to have the tests included.

several checks passed, looks like function is still working, several checks for new selection function 'sel'. Any test implemented did pass the test.

I would recommend merging and closing Issue #246
@florianhartig
Copy link
Owner Author

Hi Andreas, I don't understand the structure, I see you added some tests in this branch, but what is the purpose of this other branch https://github.com/florianhartig/DHARMa/tree/%23246 ?

@florianhartig
Copy link
Owner Author

One comment about the tests: it's true that I don't really do this either very systematically, but ideal would be not only to run the function, but also to check if the outputs are correct. So e.g. you run various selections, or PIT vs. traditional residuals, but there are no checks to see if the function does what it is expected to do. Of course, currently it still checks if things run, which is better than nothing, but still ...

@florianhartig
Copy link
Owner Author

OK, whatever, I will still merge now!

@florianhartig florianhartig merged commit 2281065 into master Mar 3, 2021
@florianhartig florianhartig deleted the recalculateResiduals-subsetting branch March 3, 2021 07:16
@EttnerAndreas
Copy link
Contributor

EttnerAndreas commented Mar 3, 2021

In the beginning, I thought it might be good to use my own branch, but then I implemented the tests in your branch which is way more useful since there is the new code and you could undo it if Issues occur.
For the tests, I will try to implement test a way it is more structured and useful. I will keep an eye on this.

@florianhartig
Copy link
Owner Author

OK, I understand. If you want to have an extra branch in this case, what you would usually do is to branch of from my development branch, then you can keep them updated, then merge back in the dev branch when finished. Or work in the dev branch directly

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