-
Notifications
You must be signed in to change notification settings - Fork 43
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
Using ratio by default for plotBiomassObservedVsModel... #288
Conversation
Update master branch from repo
Build model notebooks (sizespectrum#79)
fix while stomach data is not implemented in app
Update after Ken's changes
Hi Samik. Given that this function is marked explicitly as experimental, I am o.k. with changing its default. Just add an entry about this change to NEWS.md. Do the tests in |
…ed a couple of failures in other tests (tests/testthat/test-project_methods.R and tests/testthat/test-newMultispeciesParams.R).
Hi Gustav, I have now done this, as well as fixed two failures which were happening with the tests. I started experimenting on removing the warnings in the tests, let me know if you want me to continue doing this. |
Hi Samik. Thanks for doing this. I think that upgrading to edition 3 of the testthat package is a good idea. Please keep going. I'll wait with merging your changes relating to the |
Hi Gustav, Thanks for the suggestion, I'll do my best to keep future pull requests on separate branches and focused so that they're easier for you to review. In the meantime, I'll update as many of the tests as I can to remove the warnings. The one exception to this is the following warning, which occurs multiple times:
This is quite a sizeable task, as the files such as |
…to do with `expect_known_value` being superceded by `expect_snapshot_value`.
I'm done for now, Gustav - I'll handle the rest in specific branches as requested. You can merge these changes if you're happy. |
Hi Samik. I'll merge this as soon as the other warnings are removed as well. I want to keep the ability to run tests and quickly see the relevant warnings without being swamped by irrelevant warnings. |
Hi Gustav - I think this is done now, snapshots have replaced the files which were being used as expected values. No more failures or warnings. I went through each instance of For example, from This is important as these new snapshots will now be the baseline comparison whenever these tests are run. They all passed fine. One thing it would be good for you to check is that the |
When `validParams()` upgrades an old params object, the messages during upgrade do not need to be shown.
I'll ask Samik to investigate.
Thanks. I have now also removed the uncaught messages.
Thanks for doing this so carefully. But did you perhaps somehow mess up the creation of the snapshot for
I am not sure what you mean. The |
Hi Gustav,
I'm happy for you to push these changes now. At some stage once we're happy with the |
Unfortunately the tests don't seem to pass on all platforms. See https://github.com/sizespectrum/mizer/actions/runs/8559843355/job/23461814263#step:6:1075 for example. I guess that the edition 3 applies the tests with less tolerance and for the results of longer calculations the rounding errors appear to accrue differently on different platforms. |
…ds.R to pass multiple platforms.
Hi Gustav, that's a shame. As it only seems to be the "getFeedingLevel for MizerParams" test which fails in For example, we could use |
This still does not pass all the tests. When you view this pull request, are you able to see the test results or are they only shown to me as the owner of the repository? Here is an example: https://github.com/sizespectrum/mizer/actions/runs/8562120352/job/23474964900?pr=288 I think using |
…estthat/test-project_methods.R so that tests pass on all platforms.
Hi Gustav. Unfortunately I can't see the test results (across all the different platforms like MacOS, Windows and Ubuntu) when I view the pull request. I have updated the tests in |
Thanks Samik. The tests now passed on all platforms. |
For the function
plotBiomassObservedVsModel
, using the ratio of biomasses is much more visually useful than the log-log scale, where differences are not easily observable because of the log scale. Hence, the ratio should be the default.