Skip to content

Sorting of data in py27 is not working #19

@me2d09

Description

@me2d09

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions