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 and distance1. Alternatives can be selected using FDCurve.with_channels(). Note that it does not modify the FD curve in place but returns a copy.

Attributes:
file : lumicks.pylake.File

The parent file. Used to look up channel data.

start, stop : int

The time range (ns) of this FD curve within the file.

name : str

The name of this FD curve as it appeared in the timeline.

__init__(file, start, stop, name, force='2', distance='1')

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(file, start, stop, name[, force, …]) Initialize self.
from_dset(h5py_dset, file, **kwargs)
plot_scatter(**kwargs) Plot the FD curve points
with_channels(force, distance) Return a copy of this FD curve with difference primary force and distance channels

Attributes

d The primary distance channel associated with this FD curve
distance1
distance2
downsampled_force1
downsampled_force1x
downsampled_force1y
downsampled_force2
downsampled_force2x
downsampled_force2y
downsampled_force3
downsampled_force3x
downsampled_force3y
downsampled_force4
downsampled_force4x
downsampled_force4y
f The primary force channel associated with this FD curve
plot_scatter(**kwargs)

Plot the FD curve points

Parameters:
**kwargs

Forwarded to ~matplotlib.pyplot.scatter.

with_channels(force, distance)

Return a copy of this FD curve with difference primary force and distance channels

d

The primary distance channel associated with this FD curve

f

The primary force channel associated with this FD curve