Skip to content

fix: cast principal area moments to real type to ensure no imaginary part - #370

Merged
mortenengen merged 1 commit into
devfrom
ensure-real-principal-area-moments
Aug 28, 2026
Merged

mortenengen merged 1 commit into
devfrom
ensure-real-principal-area-moments

Conversation

@mortenengen

Copy link
Copy Markdown
Member

With numpy>2.5 the results from linalg.eig seem to include an imaginary part although the value of the imaginary part is 0j. This change makes sure the principal moments computed with linalg.eig are cast to real types before they are stored as properties.

@mortenengen mortenengen added the bug Something isn't working label Aug 28, 2026
@mortenengen
mortenengen marked this pull request as ready for review August 28, 2026 09:35
@mortenengen mortenengen moved this to New ✨ in PR tracker Aug 28, 2026
@mortenengen
mortenengen merged commit dcc0295 into dev Aug 28, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from New ✨ to Done 🚀 in PR tracker Aug 28, 2026
@mortenengen
mortenengen deleted the ensure-real-principal-area-moments branch August 28, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done 🚀

Development

Successfully merging this pull request may close these issues.

1 participant