-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fims vector #517
Conversation
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
2372ec7
to
fa2648c
Compare
note: we still need to remove some calls to |
Codecov ReportAttention:
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. |
@msupernaw doxygen is throwing this error: Can you please add documentation on |
@msupernaw can you put the description of "friend" in the documentation? |
Added description to friend operator.
@christine Stawitz - NOAA Federal ***@***.***> done.
…On Mon, Dec 4, 2023 at 6:28 PM Christine Stawitz - NOAA < ***@***.***> wrote:
@msupernaw <https://github.com/msupernaw> can you put the description of
"friend" in the documentation?
—
Reply to this email directly, view it on GitHub
<#517 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFUSEE4E6TM73O7VVKKEELYHZMDPAVCNFSM6AAAAAA7B3HKHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZZG4YTONRZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
This
<https://github.com/NOAA-FIMS/FIMS/blob/fims_vector/tests/integration/integration_class.hpp#L565>
line seems incorrect. Any idea why the index for rdev is i +1?
…On Thu, Dec 7, 2023 at 1:00 PM Andrea-Havron-NOAA ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In inst/include/common/fims_vector.hpp
<#517 (comment)>:
> +
+ /**
+ * @brief Swaps the contents.
+ */
+ inline void swap( Vector& other ){
+ this->vec_m.swap(other.vec_m);
+ }
+
+ // end std::vector functions
+
+ /**
+ * Conversion operators
+ */
+
+ /**
+ * @brief Converts fims::Vector to std::vector<Type>
edit to fims::Vector<Type>
—
Reply to this email directly, view it on GitHub
<#517 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFUSEFKS5TLPTCSPEU2S2LYIH72FAVCNFSM6AAAAAA7B3HKHWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONZQG43DANZWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
Yeah, This
<https://github.com/NOAA-FIMS/FIMS/blob/fims_vector/tests/integration/integration_class.hpp#L565>
line
is definitely overreaching the rdev array causing the random value in the
last index of rec->log_recruit_devs. rdev has a length of nyears just like
rec->log_recruit_devs.
On Thu, Dec 7, 2023 at 2:14 PM Matthew Supernaw - NOAA Federal <
***@***.***> wrote:
… This
<https://github.com/NOAA-FIMS/FIMS/blob/fims_vector/tests/integration/integration_class.hpp#L565>
line seems incorrect. Any idea why the index for rdev is i +1?
On Thu, Dec 7, 2023 at 1:00 PM Andrea-Havron-NOAA <
***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In inst/include/common/fims_vector.hpp
> <#517 (comment)>:
>
> > +
> + /**
> + * @brief Swaps the contents.
> + */
> + inline void swap( Vector& other ){
> + this->vec_m.swap(other.vec_m);
> + }
> +
> + // end std::vector functions
> +
> + /**
> + * Conversion operators
> + */
> +
> + /**
> + * @brief Converts fims::Vector to std::vector<Type>
>
> edit to fims::Vector<Type>
>
> —
> Reply to this email directly, view it on GitHub
> <#517 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABFUSEFKS5TLPTCSPEU2S2LYIH72FAVCNFSM6AAAAAA7B3HKHWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONZQG43DANZWGA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
@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? |
@christine Stawitz - NOAA Federal ***@***.***> I just took
care of it! All good!
…On Thu, Dec 7, 2023 at 4:27 PM Christine Stawitz - NOAA < ***@***.***> wrote:
@msupernaw <https://github.com/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?
—
Reply to this email directly, view it on GitHub
<#517 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFUSEESQNNP5OBONH7V7XTYIIYCZAVCNFSM6AAAAAA7B3HKHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGEZTOMJUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
@christine Stawitz - NOAA Federal ***@***.***> Now all
platforms are failing for test 42, but the rec devs make sense! I think
this needs review.
On Thu, Dec 7, 2023 at 6:28 PM Matthew Supernaw - NOAA Federal <
***@***.***> wrote:
… @christine Stawitz - NOAA Federal ***@***.***> I just
took care of it! All good!
On Thu, Dec 7, 2023 at 4:27 PM Christine Stawitz - NOAA <
***@***.***> wrote:
> @msupernaw <https://github.com/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?
>
> —
> Reply to this email directly, view it on GitHub
> <#517 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABFUSEESQNNP5OBONH7V7XTYIIYCZAVCNFSM6AAAAAA7B3HKHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGEZTOMJUGA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
@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 |
Seems easy enough to add a unit test, although I curious why it’s only an issue with constant iterators!Sent from my iPhoneOn Dec 11, 2023, at 2:13 PM, Christine Stawitz - NOAA ***@***.***> wrote:
@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?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
What is the feature?
fims_vector
class that does conversions betweenstd::
andtmbutils::
vector typesHow have you implemented the solution?
fims::Vector
typeDoes the PR impact any other area of the project?
How to test this change
Developer pre-PR checklist