Skip to content

Fix for phase covariance#111

Merged
matthewtownson merged 1 commit intoAOtools:mainfrom
ojdf:covariance-fix
Apr 2, 2026
Merged

Fix for phase covariance#111
matthewtownson merged 1 commit intoAOtools:mainfrom
ojdf:covariance-fix

Conversation

@ojdf
Copy link
Copy Markdown
Contributor

@ojdf ojdf commented Apr 2, 2026

The phase_covariance function was converting the input to float32, which was causing numerical precision issues which propagated through to the infinite phase screens (and possibly elsewhere). I have changed this to float64 which seems to resolve this.

@matthewtownson
Copy link
Copy Markdown
Member

Do you think this could be related to what I was seeing in #109 ?

@matthewtownson matthewtownson self-assigned this Apr 2, 2026
@ojdf
Copy link
Copy Markdown
Contributor Author

ojdf commented Apr 2, 2026

Could well be! We have been having some issues with infinite phase screens for a while now, but more looking at the spatial/temporal covariances which were never quite matching the theory. I think this fixes that.

@matthewtownson
Copy link
Copy Markdown
Member

Even if it doesn't its worth fixing the covariances!

The packaging is completley broken at the moment as is the tests as I've neglected the package for too long now...

@matthewtownson matthewtownson merged commit 28ef428 into AOtools:main Apr 2, 2026
0 of 2 checks passed
@ojdf ojdf deleted the covariance-fix branch April 2, 2026 14:47
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.

2 participants