lumicks.pylake.fdcurve.FdCurve¶
- class FdCurve(file, start, stop, name, force='2', distance='1')¶
An FD curve exported from Bluelake
By default, the primary force and distance channels are
downsampled_force2
anddistance1
. Alternatives can be selected usingFdCurve.with_channels()
. Note that it does not modify the FD curve in place but returns a copy.- file¶
The parent file. Used to look up channel data.
- Type
- start, stop
The time range (ns) of this FD curve within the file.
- Type
- plot_scatter(**kwargs)¶
Plot the FD curve points
- Parameters
**kwargs – Forwarded to
~matplotlib.pyplot.scatter
.
- with_baseline_corrected_x()¶
Return a copy of this F,d curve with baseline correction applied to force channel. Note: only the x component is available with baseline correction. Note: All previous data manipulations (eg. subtraction of another curve) will be lost.
- with_channels(force, distance)¶
Return a copy of this FD curve with difference primary force and distance channels
- with_offset(force_offset=0, distance_offset=0)¶
Add a constant force offset from the force data in this F,d curve. Note that points where the distance is defined as zero are ignored and that subtracting a distance offset bigger than the minimum distance in the F,d curve will result in an error.
- property d¶
The primary distance channel associated with this FD curve
- property f¶
The primary force channel associated with this FD curve