Skip to content

Commit

Permalink
Docs: add module fret_fit to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 5, 2015
1 parent d1e828c commit c7fe20c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
7 changes: 7 additions & 0 deletions docs/source/fret_fit.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Direct FRET fitting
===================

*See also* :ref:`fit-section`

.. automodule :: fretbursts.fret_fit
:members:
1 change: 1 addition & 0 deletions docs/source/reference_manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Contents:
background
burst_selection
fit
fret_fit
plots
burstsearch
plugins
Expand Down
21 changes: 11 additions & 10 deletions fretbursts/burstsearch/burstsearchlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,20 @@ def count_ph_in_bursts_py(bursts, mask):
This function takes a burst-array and a boolean mask (photon selection)
and computes the number of photons selected by the mask.
It is used, for example, to count donor and acceptor photons in each burst.
It is used, for example, to count donor and acceptor photons
in each burst.
This is a reference implementation. In practice the multi-channel
is always used instead (see :func:`mch_count_ph_in_bursts_py`).
Arguments:
Mburst (list of 2D arrays, int64): a list of burst-arrays, one per ch.
Mask (list of 1D boolean arrays): a list of photon masks (one per ch),
For each channel, the boolean mask must be of the same size of the
timestamp array used for burst search.
bursts (2D array, int64): the burst-array.
mask (1D boolean array): the photon mask. The boolean mask must be
of the same size of the timestamp array used for burst search.
Returns:
A list of 1D arrays, each containing the number of photons in the
photon selection mask.
A 1D array containing the number of photons in each burst
counting only photons in the selection mask.
"""
num_ph = np.zeros(bursts.shape[0], dtype=np.int16)
for i, burst in enumerate(bursts):
Expand All @@ -170,7 +170,8 @@ def mch_count_ph_in_bursts_py(Mburst, Mask):
This multi-channel function takes a list of burst-arrays and a list of
photon masks and compute the number of photons selected by the mask.
It is used, for example, to count donor and acceptor photons in each burst.
It is used, for example, to count donor and acceptor photons in
each burst.
Arguments:
Mburst (list of 2D arrays, int64): a list of burst-arrays, one per ch.
Expand All @@ -179,8 +180,8 @@ def mch_count_ph_in_bursts_py(Mburst, Mask):
timestamp array used for burst search.
Returns:
A list of 1D arrays, each containing the number of photons in the
photon selection mask.
A list of 1D array, each containing the number of photons
in each burst counting only photons in the selection mask.
"""
Num_ph = []
for bursts, mask in zip(Mburst, Mask):
Expand Down
5 changes: 3 additions & 2 deletions fretbursts/fret_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
# Copyright (C) 2014 Antonino Ingargiola <tritemio@gmail.com>
#
"""
Functions to fit the FRET peak using different algorithms.
This module contains functions for direct fitting of burst populations
(FRET peaks) without passing through a FRET histogram.
This module provides a standard interface for different fitting techniques.
This module provides a standard interface for different fitting algorithms.
"""

from __future__ import print_function, absolute_import
Expand Down

0 comments on commit c7fe20c

Please sign in to comment.