jmarini / nanoscope

Library to parse and process Nanoscope Dimension AFM files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-square samples will not run

Razaziel opened this issue · comments

nanoscope.py, line 137, in _read_image_data
raw_data = (np.frombuffer(file_object.read(data_size * number_points),
ValueError: buffer is smaller than requested size

Works with Nanoscope files that are perfectly square sized, but anything with unequal lines and samples per line does not work as the buffer is not set up right. If there is any insight into fixing this that would be fantastic.