Antonino Ingargiola edited Loading data.tex  over 9 years ago

Commit id: b846e53f489aa33d51c951fb7e8d7cc30a5b5fbd

deletions | additions      

       

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. Having these arrays 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) \end{verbatim}  In the previous example, we set the timestamp unit (\verb|clk_p|) to 10~ns and we specify that the data is not from an ALEX measurements. Creating Data objects for ALEX and nsALEX measurements follows the same lines. We point the interested readers to the loader module for the details.