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

Endianness Issue with SciPy's FFT #923

Closed
krischer opened this issue Dec 2, 2014 · 1 comment · Fixed by #935
Closed

Endianness Issue with SciPy's FFT #923

krischer opened this issue Dec 2, 2014 · 1 comment · Fixed by #935
Assignees
Milestone

Comments

@krischer
Copy link
Member

krischer commented Dec 2, 2014

SciPy's FFT cannot deal with big endian floats. We'll just have to enforce certain flags when passing to it.

Code snippet to reproduce:

import obspy
import numpy as np

tr = obspy.read()[0]
tr.data = np.require(tr.data, dtype=">f4")
tr.resample(10)

Came up on the mailing list: http://lists.swapbytes.de/archives/obspy-users/2014-December/001602.html

@QuLogic
Copy link
Member

QuLogic commented Dec 24, 2014

Mentioned at the end of #913, too.

@QuLogic QuLogic added the ready label Jan 21, 2015
QuLogic added a commit to QuLogic/obspy that referenced this issue Jan 23, 2015
SciPy only likes native byte orders. Fixes obspy#923.
QuLogic added a commit to QuLogic/obspy that referenced this issue Jan 23, 2015
SciPy only likes native byte orders. Fixes obspy#923.
@QuLogic QuLogic self-assigned this Jan 23, 2015
@QuLogic QuLogic added in progress and removed ready labels Jan 23, 2015
@mbyt mbyt closed this as completed in #935 Jan 25, 2015
@QuLogic QuLogic added this to the 0.10.0 milestone Feb 25, 2015
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 a pull request may close this issue.

2 participants