output real numbers for Eccentricity, MajorAxisLength, and MinorAxisLength - #20
Merged
Conversation
Member
|
In Should we no longer have the _to_complex function because we're no longer outputting complex values? |
Contributor
Author
|
Yes--this is left over from trying to get the tests to work properly before the fix, and it should be corrected. |
johnwaalsh
approved these changes
Jul 23, 2026
johnwaalsh
left a comment
Member
There was a problem hiding this comment.
Confirmed that this works as intended on my end. Looks good to me
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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.
This PR fixes a bug where complex numbers (with 0 imaginary part) were being written out for Eccentricity, MajorAxisLength, and MinorAxisLength.
This requires minor changes to how the features are computed, and has an impact on CSV output formatting.
np.linalg.eigwith a call tonp.linalg.eigh(the symmetric matrix solver, which outputs real numbers)sqrtand returningNaN0jnotation"Golden" test output is corrected for the new output format; the numbers are the same.