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

Sorting of data in py27 is not working #19

Open
me2d09 opened this issue Jun 26, 2018 · 2 comments
Open

Sorting of data in py27 is not working #19

me2d09 opened this issue Jun 26, 2018 · 2 comments

Comments

@me2d09
Copy link
Contributor

me2d09 commented Jun 26, 2018

Following code is not working in Python 2.7 (and also data.sort()...)

from Stoner import Data
import numpy as np
data=Data('test2.txt')
np.sort(data.records)

Produces:

AttributeError: 'list' object has no attribute 'dtype'

I think now it is not a problem with datafile. In Python 3 it is working fine.

test2.txt

@gb119
Copy link
Member

gb119 commented Jun 27, 2018

Hmmmm, ok will take a look at this - maybe a couple of days due to a local conference.

@gb119
Copy link
Member

gb119 commented Jun 27, 2018

Sorry, I can't seem to reproduce this problem - above code runs without errors on both 2.7 and 3.6. It may be that there is some more subtle dependency problem with numpy versions. I'm testing with:

Python 2.7.14 |Anaconda custom (64-bit), numpy 1.14.0, on Linux and Python 2.7.15 |Anaconda, Inc.| (default� numpy 1.14.3 on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants