Skip to content

Instantly share code, notes, and snippets.

@hgrecco
Last active November 11, 2016 19:52
Show Gist options
  • Save hgrecco/4aa6702967bc3ab3c904772b71e2f4e9 to your computer and use it in GitHub Desktop.
Save hgrecco/4aa6702967bc3ab3c904772b71e2f4e9 to your computer and use it in GitHub Desktop.
class UncorrectedFLIMds:
"""Abstract a FLIM dataset
"""
@classmethod
def from_file(self, filename):
"""Loads the dataset from a file.
"""
@classmethod
def from_fd(self, fi)
"""Loads the dataset from a file descriptor.
"""
def r_image(self, harm, binning):
"""Calculate and return normalized fourier coefficient.
"""
def to_corrected(self, harm, irf):
"""Calculate and return a corrected FLIMds.
"""
class CorrectedFLIMds:
@classmethod
def from_ufds(self, ufds, irf):
"""Loads the dataset from an uncorrected flim dataset
"""
def r_image(self, harm, binning):
"""Calculate and return normalized fourier coefficient.
"""
def mlt_image(self):
"""Calculate and return a modulation lifetime image.
"""
def plt_image(self)
"""Calculate and return a phase lifetime image.
"""
def nlt_image(self):
"""Calculate and return a normal lifetime image.
"""
def mlt_stats(self, umask):
"""Calculate and return the modulation lifetime stats in each part of the mask.
"""
def plt_stats(self, umask)
"""Calculate and return the phase lifetime stats in each part of the mask.
"""
def nlt_stats(self, umask):
"""Calculate and return the normal lifetime stats in each part of the mask.
"""
class FRETFLIMds:
@classmethod
def from_cfds(self, cfds, r1, r2):
"""Loads the dataset from a corrected flim dataset.
"""
def r_image(self, harm, binning):
"""Calculate and return normalized fourier coefficient.
"""
def mlt_image(self, binning_or_mask):
"""Calculate and return a modulation lifetime image.
"""
def plt_image(self, binning)
"""Calculate and return a phase lifetime image.
"""
def nlt_image(self, binning):
"""Calculate and return a normal lifetime image.
"""
def p_image(self, binning):
"""Calculate and return a photon fraction image.
"""
def m_image(self, binning):
"""Calculate and return a molecular fraction image.
"""
def mlt_stats(self, umask):
"""Calculate and return the modulation lifetime stats in each part of the mask.
"""
def plt_stats(self, umask)
"""Calculate and return the phase lifetime stats in each part of the mask.
"""
def nlt_stats(self, umask):
"""Calculate and return the normal lifetime stats in each part of the mask.
"""
def p_image(self, binning):
"""Calculate and return a photon fraction stats in each part of the mask..
"""
def m_image(self, binning):
"""Calculate and return a molecular fraction stats in each part of the mask..
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment