-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance R wrapper functions to support length data and add integratio…
…n tests - Extend R wrapper functions to handle three scenarios: age input only, length input only, and combined age and length inputs. - Remove `tests/testthat/fixtures/simulate-integration-test-data.R` and prepare test fixtures using `data-raw/data1.R` to eliminate duplicated OM simulation code. - Refactor helper functions to consistently source age comps, length comps, and the age-to-length conversion matrix from OM datasets (`om_input$` or `em_input$`). - Add integration tests to validate the functionality across the three input scenarios. - Update NLL tests in integration tests without wrapper functions, as direct comparison of `jnll` from reports with OM-derived `jnll` is not feasible. - Update `fims-demo` to demonstrate model runs using both age and length composition data. - TODO: update the length comp likelihoods section from the "nll test of fims" in both `tests/testthat/test-integration-fims-estimation-with-wrappers.R` and `tests/testthat/test-integration-fims-estimation-without-wrappers.R Co-authored-by: @nathanvaughan-NOAA <[email protected]> Co-authored-by: @JaneSullivan-NOAA <[email protected]>
- Loading branch information
1 parent
ec6dc90
commit c5f03ee
Showing
17 changed files
with
946 additions
and
829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.