Importing peakutils fails.

Issue #3 resolved
Andrew Nelson created an issue

Python 2.7.6

scipy.version.version '0.16.0.dev0+653593b'

import peakutils

File "/Users/anz/Documents/Andy/programming/dev2/lib/python2.7/site-packages/peakutils/peak.py", line 110 params, *_ = optimize.curve_fit(gaussian, x, y, initial) ^ SyntaxError: invalid syntax

Comments (8)

  1. Duygu ALTINOK

    I have python 2.7.9 and I have the same import error 3 mins ago:))

    File "/usr/local/lib/python2.7/dist-packages/PeakUtils-1.0.0-py2.7.egg/peakutils/peak.py", line 110 params, *_ = optimize.curve_fit(gaussian, x, y, initial)

  2. Lucas Hermann Negri repo owner

    Python 2 incompatibility was fixed, but I have not releaset (yet) a new version (will do it soon).

  3. Slawomir Skruszewicz

    Hi,

    I still have similar problem (Anaconda, Spider, Python 2.7). How this issue is resolved ?

  4. Lucas Hermann Negri repo owner

    Hi, it was working in git HEAD, but I did not published a new version. I've pushed a new version to pypi that includes the fix for Python 2 (v 1.0.1). It should be working now.

  5. Lucas Hermann Negri repo owner

    Hi,

    I've just tested the tutorial with both Python 2.7 and Python 3.4, and could not reproduce your problem. Could you send me a minimal test case that reproduces the problem?

  6. Slawomir Skruszewicz

    Hi,

    It seems that there is inconsistency between two toutorials.

    In Line 17 of first example there is peakutils.plot(x, y, indexes) and in the latter pplot(x,y, indexes). The second one works fine.

    Thank you for your contribution !!! btw. now the one with peakutils.plot(x, y, indexes) is gone (weird)

  7. Log in to comment