.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/tutorials/facs_canto.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_tutorials_facs_canto.py: Flow Cytometry Simulation: FacsCanto System ============================================ This tutorial demonstrates how to set up and run a flow cytometry simulation using the FacsCanto instance from the FlowCyPy library. It includes defining a particle population, configuring the flow cytometer, running the simulation, and visualizing the results. .. GENERATED FROM PYTHON SOURCE LINES 10-12 Step 0: Global Settings and Imports ----------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 12-40 .. code-block:: Python from FlowCyPy.instances.flow_cytometer import FacsCanto, SampleFlowRate, SheathFlowRate from FlowCyPy.fluidics import distribution, population from TypedUnit import ureg population_0 = population.Sphere( name="Pop 0", particle_count=5e9 * ureg.particle / ureg.milliliter, diameter=distribution.RosinRammler(150 * ureg.nanometer, spread=30), refractive_index=distribution.Normal( 1.44 * ureg.RIU, standard_deviation=0.002 * ureg.RIU ), ) facs_canto = FacsCanto( sample_volume_flow=SampleFlowRate.MEDIUM, sheath_volume_flow=SheathFlowRate.DEFAULT, optical_power=20 * ureg.milliwatt, background_power=1 * ureg.nanowatt, ) facs_canto.add_population(population_0) facs_canto.dilute_sample(factor=100) run_record = facs_canto.run(run_time=0.2 * ureg.millisecond) run_record.plot_digital() .. image-sg:: /gallery/tutorials/images/sphx_glr_facs_canto_001.png :alt: facs canto :srcset: /gallery/tutorials/images/sphx_glr_facs_canto_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none
.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.725 seconds) .. _sphx_glr_download_gallery_tutorials_facs_canto.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: facs_canto.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: facs_canto.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: facs_canto.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_