Closed AnsgarSiemer closed 1 year ago
@AnsgarSiemer, Thanks for pointing this out. #114 should have taken care of this error, as well as the related issue #113. This was done by fixing the type of the _size
attribute to int
, as you correctly pointed out. I notice that this was just before the v0.7 release, so this fix seems to be currently present only on the master
branch. If you are using pip to install nmrglue, python -m pip install git+https://github.com/jjhelmus/nmrglue.git
should get you the latest development version. Let us know if that fixes it.
@kaustubhmote Thank you. I installed the master branch and the problem went away.
I recently encountered an issue with plotting simple 1D spectra, after similar scripts have worked for years:
I was able to fix it by changing
return np.linspace(x0, x1, self._size)
toreturn np.linspace(x0, x1, int(self._size))
in line 276 of fileiobase.py.This is probably not the best solution. I am running Debian unstable with python 3.8 but I could reproduce the error using miniconda and python 3.6.
Nmrglue is a great module. Thank you for writing and maintaining it.