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

DRAFT: Added elif statement MarginalizingNmat.solve to allow for 2D left_array #402

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

JacobCT
Copy link

@JacobCT JacobCT commented Sep 26, 2024

Added elif statement made by @kgrunthal that is needed for Fe calculation and OS statistics. @bvgoncharov and I changed her original elif-condition from: elif right.ndim == 2 and left_array is not None and left_array.ndim == 2:, to: elif left_array is not None and right.ndim == left_array.ndim and right.ndim<=2:. This was done to include the case where both right and left_array have dimension 1, but they are not the same.

Matrix algebra should be double-checked to ensure that it is still applicable to this condition. It is possible that it is only valid with @kgrunthal's original conditions.

This PR fixes issue #401

…alculation and OS statistics. We changed her original elif-condition from: elif right.ndim == 2 and left_array is not None and left_array.ndim == 2:, to: elif left_array is not None and right.ndim == left_array.ndim and right.ndim<=2:. This was done in order to include the case where both right and left_array have dimension 1, but they are not the same.
@vhaasteren vhaasteren self-requested a review September 27, 2024 07:50
@vhaasteren vhaasteren changed the title Added elif statement to gp_signals.py Added elif statement MarginalizingNmat.solve to allow for 2D left_array Sep 27, 2024
vhaasteren
vhaasteren previously approved these changes Sep 27, 2024
@vhaasteren vhaasteren self-requested a review September 27, 2024 08:02
@vhaasteren vhaasteren dismissed their stale review September 27, 2024 08:02

Need a unit test

@vhaasteren
Copy link
Member

This change is ok. However, we need to add a unit test for the newly added code.

@JacobCT JacobCT marked this pull request as draft September 27, 2024 09:02
@JacobCT JacobCT changed the title Added elif statement MarginalizingNmat.solve to allow for 2D left_array DRAFT: Added elif statement MarginalizingNmat.solve to allow for 2D left_array Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants