Skip to content

Bugfix: from_znap returns NaN in complex, amplitude, phase layers - #118

Merged
Simon-van-Diepen merged 2 commits into
mainfrom
117-from_znap-nans
Aug 5, 2026
Merged

Bugfix: from_znap returns NaN in complex, amplitude, phase layers#118
Simon-van-Diepen merged 2 commits into
mainfrom
117-from_znap-nans

Conversation

@Simon-van-Diepen

Copy link
Copy Markdown
Contributor
  • Split the calls to assign_coords on one side and assign and drop_vars on the other side into two separate function calls to ensure the coordinate update is fully realized
  • Test one of the values in complex to ensure it is not NaN

@Simon-van-Diepen Simon-van-Diepen linked an issue Jul 28, 2026 that may be closed by this pull request
@sonarqubecloud

Copy link
Copy Markdown

@Simon-van-Diepen

Copy link
Copy Markdown
Contributor Author

Hi @rogerkuou could you review this fix for from_znap? Turns out when changing the code during the review process we introduced a bug that was not caught by the unit tests, causing all output to be NaNs

@rogerkuou rogerkuou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @Simon-van-Diepen , thanks for the nice fix! Please go ahead and merge

@Simon-van-Diepen
Simon-van-Diepen merged commit f91300a into main Aug 5, 2026
18 checks passed
@Simon-van-Diepen
Simon-van-Diepen deleted the 117-from_znap-nans branch August 5, 2026 07:37
@Simon-van-Diepen

Copy link
Copy Markdown
Contributor Author

Thanks @rogerkuou , I have merged it. Could you update the version to 1.4.0b2?

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.

from_znap returns NaNs in complex, amplitude, phase layers

2 participants