levisim.data.experiment

Experimental time traces (Experiment), loaded from .mat or .bin files

class levisim.data.experiment.Experiment(data_path, **kwargs)[source]

Bases: object

Class for importing the experimental data

property info

Prints information on the Experiment instance

property info_str

String describing the Experiment instance

property time_length

Time length of the experimental run (seconds)

property min_Δf

Minimum frequency resolution the time trace is capable of producing (Hertz)

property sample_rate

Sample rate of the experiment - how many samples are taken per second? (samples/second)

property Nyquist_frequency

The Nyquist frequency, a.k.a. the bandwidth of the experimental data collection This will be the largest frequency in the spectral density estimate NOTE: https://en.wikipedia.org/wiki/Nyquist_frequency

property time_array

Array of all the time steps in the experimental data

load_data()[source]

Runs correct load function given the file_extension The aim of each of these functions is - to acquire num_samples and Δt - to assign the trace data to the traces dict

load_matfile()[source]

Load time traces from a .mat file

load_binfile()[source]

Load time traces from a .bin file - adapted from optoanalysis.DataObject.load_time_data

assign_trace(values, start, end, axis, units)[source]

Assign the values of a trace to the trace dict according to the channel dict