Skip to content

MAINT: 1.0.x: handle mixed dtype cofficients correctly across inverse transforms#455

Merged
rgommers merged 1 commit intoPyWavelets:1.0.xfrom
grlee77:backport_pr450
Feb 11, 2019
Merged

MAINT: 1.0.x: handle mixed dtype cofficients correctly across inverse transforms#455
rgommers merged 1 commit intoPyWavelets:1.0.xfrom
grlee77:backport_pr450

Conversation

@grlee77
Copy link
Copy Markdown
Contributor

@grlee77 grlee77 commented Feb 10, 2019

This is a backport of #450 to the 1.0.x branch. There were no conflicts when cherry-picking the commits, so this should be good to go once CI passes.

use _check_dtype on the coarsest level approximation coeffs

output array dtype is upcast if any detail coefficients have higher precision
than the approximation coefficients.

fix: make dtype upcast in idwt respect complex dtypes

add a dtype upcast to idwtn to match the behavior of idwt

test inverse SWT functions with mixed dtype coefficients

test idwt and idwtn with mixed complex dtypes as well

test mixed precision with wavedec/waverec as well

idwtn: only compare dtypes if both coeffs are not None
@rgommers rgommers merged commit 4abf379 into PyWavelets:1.0.x Feb 11, 2019
@rgommers
Copy link
Copy Markdown
Member

All green, merging. Thanks @grlee77

@rgommers rgommers added this to the v1.0.2 milestone Feb 11, 2019
@grlee77 grlee77 deleted the backport_pr450 branch November 13, 2019 00:50
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