this is for holding javascript data
Antonino Ingargiola edited Loading data.tex
over 9 years ago
Commit id: 7f0a37ba2d5c81950b6a463af63a424bea371b16
deletions | additions
diff --git a/Loading data.tex b/Loading data.tex
index 15d0b9e..409bfe2 100644
--- a/Loading data.tex
+++ b/Loading data.tex
...
where \verb|file_name| is a string containing the file path. In the previous command, the variable `d` (of type `Data`) is the fundamental object in FRETBursts that contains the measurement data and several methods to process it.
In case the data is available in a format not directly supported it is possible to manually create a \verb|Data| variable. For example, for non-ALEX smFRET data, two arrays of same length are needed: the timestamps and the acceptor-mask. The timestamps is an int64 numpy array containing the recorded photon timestamps in arbitrary units (usually dictated by the acquisition hardware clock period). The acceptor-mask is a numpy boolean array that is True when the corresponding timestamps comes from the acceptor channel and False when it comes from the donor channel.
Once you have Having these arrays
you can manually create a \verb|Data| object
can be manually created with:
\begin{verbatim}
d = Data(ph_times_m=[timestamps], A_em=[acceptor_mask], clk_p=10e-9, ALEX=False)