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

TST: Explicity align data records in test_byte_offset() #314

Merged
merged 1 commit into from
May 8, 2017

Conversation

rbalint
Copy link

@rbalint rbalint commented May 5, 2017

Also use dict for dtype definition because list format
ignores alignment. See numpy/numpy#663

@grlee77
Copy link
Contributor

grlee77 commented May 5, 2017

Thanks @rbalint! This looks good to me. I will merge later this weekend if there are no objections.

@@ -88,8 +88,9 @@ def test_byte_offset():

for mode in pywt.Modes.modes:
expected = pywt.dwtn(data, wavelet)
padded = np.ones((3, 6), dtype=np.dtype([('data', data.dtype),
('pad', 'byte')]))
padded = np.ones((3, 6), dtype=np.dtype({'ddata': (data.dtype, 0),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this field name from 'ddata' back to 'data'? It is causing one test failure as is

Copy link
Author

Choose a reason for hiding this comment

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

Ah, done. Thanks!

Also use dict for dtype definition because list format
ignores alignment. See numpy/numpy#663
@codecov-io
Copy link

codecov-io commented May 8, 2017

Codecov Report

Merging #314 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #314      +/-   ##
==========================================
+ Coverage   86.22%   86.25%   +0.03%     
==========================================
  Files          21       21              
  Lines        3092     3092              
  Branches      535      535              
==========================================
+ Hits         2666     2667       +1     
  Misses        373      373              
+ Partials       53       52       -1
Impacted Files Coverage Δ
pywt/_wavelet_packets.py 78.12% <0%> (ø) ⬆️
pywt/_extensions/c/wt.template.c 87.38% <0%> (+0.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd7b793...6b22ec7. Read the comment docs.

@grlee77 grlee77 merged commit 8377379 into PyWavelets:master May 8, 2017
@grlee77 grlee77 added this to the v1.0 milestone Jul 18, 2018
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.

3 participants