Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: use single precision routines for half-precision inputs #275

Merged
merged 1 commit into from
Jan 17, 2017

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Jan 16, 2017

A small change to process half-precision inputs using single precision rather than double. It's probably a rare use case, but I think that is a more sensible behavior.

@grlee77 grlee77 added this to the v1.0 milestone Jan 16, 2017
# converted to float64.
dtypes_in = [np.int8, np.float32, np.float64, np.complex64, np.complex128]
dtypes_out = [np.float64, np.float32, np.float64, np.complex64, np.complex128]
from pywt.tests.test_dwt_idwt import dtypes_in, dtypes_out
Copy link
Member

Choose a reason for hiding this comment

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

tests is not a submodule (no __init__.py), so this made the tests fail.

@grlee77
Copy link
Contributor Author

grlee77 commented Jan 16, 2017

right. I forgot about that.
I have rebased, restoring the duplication of the variables across the files.

formerly half-precision was converted to double
@codecov-io
Copy link

codecov-io commented Jan 17, 2017

Current coverage is 86.29% (diff: 100%)

Merging #275 into master will increase coverage by <.01%

@@             master       #275   diff @@
==========================================
  Files            20         20          
  Lines          3056       3058     +2   
  Methods          45         45          
  Messages          0          0          
  Branches        525        525          
==========================================
+ Hits           2637       2639     +2   
+ Misses          369        368     -1   
- Partials         50         51     +1   

Powered by Codecov. Last update 8bb4430...85119cc

@rgommers rgommers merged commit 7406d2c into PyWavelets:master Jan 17, 2017
@rgommers
Copy link
Member

Agreed, that does make more sense. Merged, thanks @grlee77

@grlee77 grlee77 deleted the half branch July 20, 2018 21:30
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.

None yet

3 participants