-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added start_year and end_year as slots to FIMSFrame #501
Merged
Conversation
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
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #501 +/- ##
==========================================
+ Coverage 74.58% 74.68% +0.09%
==========================================
Files 38 38
Lines 2034 2042 +8
Branches 136 136
==========================================
+ Hits 1517 1525 +8
Misses 476 476
Partials 41 41 ☔ View full report in Codecov by Sentry. |
ae295c4
to
12b2f1b
Compare
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
12b2f1b
to
683a8df
Compare
start_year and end_year are slots in FIMSFrame that are automatically determined by the data, users do not need to add anything. If they want to change the start or end year, then they could add dummy data such as a year of catch for a fleet with zero landings.
683a8df
to
d0f56e3
Compare
peterkuriyama-NOAA
approved these changes
Nov 22, 2023
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the feature?
How have you implemented the solution?
Based on the minimum and maximum date in the data, the start and end year of the model are set and added to the data as a slot. That way users do not have to set these values and they can change as the data are changed. Our thought was that if they wanted a consistent start year for the model that is not based on data, they could add a year of catches with zero catch.
Does the PR impact any other area of the project?
Just FIMSFrame is changed, the input data is still the same
How to test this change
In the R tests, we test that the added slots are integer values.
Developer pre-PR checklist
This PR will Resolve #307