TypeError
Hi Charlie,
I've had the following error when I ran lsa_compute.
TypeError: The numpy boolean negative, the -
operator, is not supported, use the ~
operator or the logical_not function instead.
Could you help to solve it?
Thank you!
Comments (4)
-
repo owner -
Traceback (most recent call last): File "./anaconda2/bin/lsa_compute", line 11, in <module> load_entry_point('lsa==1.0.2', 'console_scripts', 'lsa_compute')() File "./anaconda2/lib/python2.7/site-packages/lsa-1.0.2-py2.7-macosx-10.6-x86_64.egg/lsa/lsa_compute.py", line 335, in main secondFactorLabels=secondFactorLabels, qvalueMethod=qvalueMethod, progressive=progressive) File "./anaconda2/lib/python2.7/site-packages/lsa-1.0.2-py2.7-macosx-10.6-x86_64.egg/lsa/lsalib.py", line 1073, in applyAnalysis trendThresh, True) #now allowing trend analysis in singleLSA File "./anaconda2/lib/python2.7/site-packages/lsa-1.0.2-py2.7-macosx-10.6-x86_64.egg/lsa/lsalib.py", line 217, in singleLSA xSeries = zNormalize(fTransform(series1)) File "./anaconda2/lib/python2.7/site-packages/lsa-1.0.2-py2.7-macosx-10.6-x86_64.egg/lsa/lsalib.py", line 781, in percentileZNormalize ranks = tied_rank(tseries) File "./anaconda2/lib/python2.7/site-packages/lsa-1.0.2-py2.7-macosx-10.6-x86_64.egg/lsa/lsalib.py", line 703, in tied_rank V = V[-V.mask] #remove nan's TypeError: The numpy boolean negative, the
-
operator, is not supported, use the~
operator or the logical_not function instead. -
repo owner This has already been fixed a time ago. Please upgrade your elsa to the latest master branch.
-
repo owner - changed status to closed
- Log in to comment
Sure. Can you give the line number which triggers the error? Thanks