jjhelmus / nmrglue

A module for working with NMR data in Python
BSD 3-Clause "New" or "Revised" License
209 stars 86 forks source link

nmrglue V0.6 Bruker fails to read #71

Closed gageoleighton closed 6 years ago

gageoleighton commented 6 years ago

I'm trying to read in a bruker folder ng.bruker.read(filename) but keep getting the error: " dic,data = ng.bruker.read(filename) File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nmrglue\fileio\bruker.py", line 327, in read null, data = read_binary(f, shape=shape, cplex=cplex, big=big) File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nmrglue\fileio\bruker.py", line 996, in read_binary return dic, data.reshape(shape) TypeError: 'float' object cannot be interpreted as an integer "

But using ng.bruker.read_lowmem(filename) to read the folder works just fine.

gageoleighton commented 6 years ago

Sorry, I wanted to just let people know that this is not an issue with the newer version just with 0.6

Thankfully, this is not an issue that needs to be fixed ;)