pysted.base.Microscope
- class pysted.base.Microscope(excitation, sted, detector, objective, fluo, load_cache=False, verbose=False)
This class implements a microscopy setup described by an excitation beam, a STED (depletion) beam, a detector, some fluorescence molecules, and the parameters of the objective.
- Parameters:
excitation – A
GaussianBeam
object representing the excitation laser beam.sted – A
DonutBeam
object representing the STED laser beam.detector – A
Detector
object describing the microscope detector.objective – A
Objective
object describing the microscope objective.fluo – A
Fluorescence
object describing the fluorescence molecules to be used.load_cache – A bool which determines whether or not the microscope’s lasers will be generated from scratch (load_cache=False) or if they will be loaded from the previous save (load_cache=True). Generating the lasers from scratch can take a long time (takes longer as the pixel_size decreases), so loading the cache can save time when doing multiple experiments using the same pixel_size.
Microscope.add_to_pixel_bank
(n_pixels_per_tstep)Adds the residual pixels to the pixel bank
Microscope.cache
(datamap_pixelsize[, save_cache])Compute and cache the excitation and STED intensities, and the fluorescence PSF.
Empty the cache.
Empties the pixel bank
Microscope.get_effective
(datamap_pixelsize, ...)Computes the effective point spread function.
Microscope.get_signal_and_bleach
(datamap, ...)Acquires the signal and bleaches simultaneously.
Microscope.is_cached
(datamap_pixelsize)Indicate the presence of a cache entry for the given pixel size.
Verifies the amount stored in the pixel_bank, return the integer part if greater or equal to 1