ocesou / hooke

Automatically exported from code.google.com/p/hooke
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Wrong contact point, when approach and retract have different lengths #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load a curve with longer retract than approach segment (e.g. 0.5 µm
approach, 1 µm retract).
2. autopeak (baseline_clicks = 1)

What is the expected output? What do you see instead?
Fit functions should end at the contact point. However, the contact point
is somewhere in the repulsive part.

What version of the product are you using? On what operating system?
hooke-20100120-rev213

Please provide any additional information below.
The function "find_contact_point" (line 499, fit.py) should fit the second
half of the retraction curve. However, it fits the approach part including
parameters of the retract part (endlength:monlength).

fit.py:

523: xext=plot.vectors[0][0]
524: yext=plot.vectors[0][1]
525: xret2=plot.vectors[1][0]
526: yret=plot.vectors[1][1]
...
548: xchunk=yext[endlength:monlength]
549: ychunk=yext[endlength:monlength]
...
559: ymean=np.mean(ychunk) #baseline

May there be a typing error?

Original issue reported on code.google.com by albedomanu@googlemail.com on 15 Feb 2010 at 7:27

GoogleCodeExporter commented 8 years ago
Please, could you attach a curve?  We need one to do some tests.

Original comment by fabrizio...@gmail.com on 1 Mar 2010 at 10:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
What driver are you using?

Original comment by devicera...@gmail.com on 1 Mar 2010 at 1:52