Skip to content

ValueError: When changing to a larger dtype, its size must be a divisor of the total size in bytes of the last axis of the array. #17

@me2d09

Description

@me2d09

When loading standard PPMS datafile test.txt it is not possible to show its records. Try this code:

from Stoner import Data
data=Data('test.txt')
data.records

Problem is when calling self.data.view(dtype=dtype) in Core.py (https://github.com/gb119/Stoner-PythonCode/blob/master/Stoner/Core.py#L913)

With data from VSM PPMS option it is working fine so I have no idea why this error is produced just for this datafile.

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