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

Fims vector #517

Merged
merged 66 commits into from
Dec 13, 2023
Merged

Fims vector #517

merged 66 commits into from
Dec 13, 2023

Conversation

ChristineStawitz-NOAA
Copy link
Contributor

What is the feature?

  • Adds a fims_vector class that does conversions between std:: and tmbutils:: vector types

How have you implemented the solution?

  • add new fims_vector.hpp file
  • update fleet.hpp and population.hpp files to use fims::Vector type
  • resolve merge conflicts regarding namespace and logging updates

Does the PR impact any other area of the project?

How to test this change

Developer pre-PR checklist

  • I relied on GitHub actions to 🧪 things for me while I sat on the 🛋️.

@ChristineStawitz-NOAA ChristineStawitz-NOAA requested review from a team and MOshima-PIFSC and removed request for a team November 7, 2023 21:23
Copy link
Contributor

github-actions bot commented Nov 7, 2023

Instructions for code reviewer

Hello reviewer, thanks for taking the time to review this PR!

  • Please use this checklist during your review, checking off items that you have verified are complete!
  • For PRs that don't make changes to code (e.g., changes to README.md or Github actions workflows), feel free to skip over items on the checklist that are not relevant. Remember it is still important to do a thorough review.
  • Then, comment on the pull request with your review indicating where you have questions or changes need to be made before merging.
  • Remember to review every line of code you’ve been asked to review, look at the context, make sure you’re improving code health, and compliment developers on good things that they do.
  • PR reviews are a great way to learn, so feel free to share your tips and tricks. However, for optional changes (i.e., not required for merging), please include nit: (for nitpicking) before making the suggestion. For example, nit: I prefer using a data.frame() instead of a matrix because...
  • Engage with the developer when they respond to comments and check off additional boxes as they become complete so the PR can be merged in when all the tasks are fulfilled. Make it clear when this has been reached by commenting on the PR with something like This PR is now ready to be merged, no changes needed.

Checklist

  • The PR is requested to be merged into the appropriate branch (typically main)
  • The code is well-designed.
  • The functionality is good for the users of the code.
  • Any User Interface changes are sensible and look good.
  • The code isn’t more complex than it needs to be.
  • Code coverage remains high, indicating the new code is tested.
  • The developer used clear names for everything.
  • Comments are clear and useful, and mostly explain why instead of what.
  • Code is appropriately documented (doxygen and roxygen).

@ChristineStawitz-NOAA
Copy link
Contributor Author

note: we still need to remove some calls to ParameterVector and delete ModelTraits, but given how many merge conflicts we are experiencing think those should be fixed in a new branch to keep this change small.

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (8fc62f5) 74.92% compared to head (b945e85) 75.40%.

Files Patch % Lines
inst/include/common/fims_vector.hpp 95.12% 0 Missing and 2 partials ⚠️
...erface/rcpp/rcpp_objects/rcpp_tmb_distribution.hpp 50.00% 2 Missing ⚠️
...include/interface/rcpp/rcpp_objects/rcpp_fleet.hpp 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #517      +/-   ##
==========================================
+ Coverage   74.92%   75.40%   +0.48%     
==========================================
  Files          38       39       +1     
  Lines        2042     2090      +48     
  Branches      136      140       +4     
==========================================
+ Hits         1530     1576      +46     
  Misses        471      471              
- Partials       41       43       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChristineStawitz-NOAA
Copy link
Contributor Author

@msupernaw doxygen is throwing this error: error: Member value_type (typedef) of class fims::Vector is not documented. (warning treated as error, aborting now)

Can you please add documentation on value_type?

@ChristineStawitz-NOAA
Copy link
Contributor Author

@msupernaw can you put the description of "friend" in the documentation?

Added description to friend operator.
@msupernaw
Copy link
Contributor

msupernaw commented Dec 4, 2023 via email

@msupernaw
Copy link
Contributor

msupernaw commented Dec 7, 2023 via email

@msupernaw
Copy link
Contributor

msupernaw commented Dec 7, 2023 via email

@ChristineStawitz-NOAA
Copy link
Contributor Author

@msupernaw - I think this is the same issue I had to fix in the R integration test but then I never went back and made the same fix in the C++ integration test. Is it fixed now in the C++ integration test, or should I fix it?

@msupernaw
Copy link
Contributor

msupernaw commented Dec 7, 2023 via email

@msupernaw
Copy link
Contributor

msupernaw commented Dec 7, 2023 via email

@ChristineStawitz-NOAA
Copy link
Contributor Author

@Andrea-Havron-NOAA and I are looking at this and other than the comment edits, which I can fix, there is an issue with code_cov that begin() and end() are not tested when they are const iterators. It doesn't have a problem with begin() or end() for non-const iterators. Can we either add a test for const iterators in the integrated or unit test, or remove these methods?

@msupernaw
Copy link
Contributor

msupernaw commented Dec 11, 2023 via email

@ChristineStawitz-NOAA ChristineStawitz-NOAA merged commit b58aaee into main Dec 13, 2023
13 checks passed
@ChristineStawitz-NOAA ChristineStawitz-NOAA deleted the fims_vector branch December 13, 2023 17:32
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.

[Refactor]: Standardize file structure for ModelTraits [Refactor]: Naming conventions in ModelTraits
5 participants