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

Mat index bug #249

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Mat index bug #249

wants to merge 13 commits into from

Conversation

dingraha
Copy link

@dingraha dingraha commented Mar 5, 2024

No description provided.

@dingraha
Copy link
Author

dingraha commented Mar 6, 2024

See discussion in this issue: #248

@dingraha dingraha marked this pull request as ready for review March 6, 2024 16:02
@dingraha
Copy link
Author

@jonniedie polite ping re: this PR.

test/runtests.jl Outdated
@@ -132,7 +137,7 @@ end
for T in [Int64, Int32, Float64, Float32, ComplexF64, ComplexF32]
@test ComponentArray(a = T[]) == ComponentVector{T}(a = T[])
@test ComponentArray(a = T[], b = T[]) == ComponentVector{T}(a = T[], b = T[])
@test ComponentArray(a = T[], b = (;)) == ComponentVector{T}(a = T[], b = T[])
@test_broken ComponentArray(a = T[], b = (;)) == ComponentVector{T}(a = T[], b = T[])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important we don't break this one because the behavior is relied upon in some some large simulation projects. This allows ComponentArrays that match a nested model structure to be initialized when one of the internal models doesn't have integrable state.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, thanks. I'll take a look at it again when I get a chance.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonniedie Another polite ping. :-)

@dingraha
Copy link
Author

@jonniedie Another polite ping re: this PR. :-) It's ready to go from my perspective.

@codecov-commenter
Copy link

codecov-commenter commented Apr 7, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 74.07%. Comparing base (fac804d) to head (b43853b).
Report is 2 commits behind head on main.

Files Patch % Lines
src/axis.jl 88.88% 1 Missing ⚠️
src/componentindex.jl 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   73.88%   74.07%   +0.18%     
==========================================
  Files          23       25       +2     
  Lines         743      787      +44     
==========================================
+ Hits          549      583      +34     
- Misses        194      204      +10     

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

@dingraha
Copy link
Author

@jonniedie Another polite ping re: this PR. :-)

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.

None yet

3 participants