Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Changed 'np.float' to 'float' in peakpick.py line 329#193

Merged
kaustubhmote merged 1 commit into
jjhelmus:masterfrom
weisscharlesj:fix_float
Jun 8, 2023
Merged

Changed 'np.float' to 'float' in peakpick.py line 329#193
kaustubhmote merged 1 commit into
jjhelmus:masterfrom
weisscharlesj:fix_float

Conversation

@weisscharlesj
Copy link
Copy Markdown
Contributor

Changed 'np.float' to 'float' in peakpick.py line 329 to fix the np.analysis.peakpick.pick() function. NumPy deprecated the np.float function in numpy 1.20.0 which broke the ng.analysis.peakpick.pick() function giving an error (see nmrglue issue #192). Changing 'np.float' to 'float' is the recommended fix by NumPy as it "will not modify any behavior and is safe." Using the float() function instead of np.float() looks to be consistent with the rest of the code in peakpick.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants