ocesou / hooke

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

correction support (force exension curves) #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I was writing a driver for an home made force curve file and I found this 
implementability problem.
In my file I have the Force and the "z", I also have the spring constant.
So what I want is the support of the "correct" function that give me force vs 
extension curves but it allow me also to see the force vs displacement curve.
The problem is, that with the present implementation one have to change the 
following line to add the support.
procplots.py  line: 142
if current.curve.experiment != 'smfs':

And one have to add the type of "file curve" to this line.

It would be better if instead we have a variable inside the driver of the 
curves, something like "support_correction" and then in procplots.py

if current.curve.support_correction == True   (do your job)

I don't really have an idea how to do that however I can study the code to 
implement it (it should not be different from the code 
current.curve.experiment).

What do you think ?

Original issue reported on code.google.com by fabrizio...@gmail.com on 5 Jul 2011 at 8:11