File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616from TypedUnit import ureg
1717
1818from FlowCyPy import FlowCytometer , SimulationSettings
19+ from FlowCyPy .fluidics import distributions
1920from FlowCyPy .fluidics import (
2021 FlowCell ,
2122 Fluidics ,
2223 ScattererCollection ,
23- distribution ,
2424 population ,
2525)
2626from FlowCyPy .opto_electronics import (
7272 pop = population .Sphere (
7373 name = f"{ size } nm" ,
7474 concentration = 5e9 * ureg .particle / ureg .milliliter ,
75- diameter = distribution .Delta (position = size * ureg .nanometer ),
76- refractive_index = distribution .Delta (position = 1.36 * ureg .RIU ),
75+ diameter = distributions .Delta (value = size * ureg .nanometer ),
76+ refractive_index = distributions .Delta (value = 1.36 * ureg .RIU ),
7777 medium_refractive_index = 1.33 * ureg .RIU ,
7878 )
7979 scatterer_collection .add_population (pop )
Original file line number Diff line number Diff line change 2020from TypedUnit import ureg
2121
2222from FlowCyPy import FlowCytometer , SimulationSettings
23+ from FlowCyPy .fluidics import distributions
2324
2425# Import necessary components from FlowCyPy
2526from FlowCyPy .fluidics import (
2627 FlowCell ,
2728 Fluidics ,
2829 ScattererCollection ,
29- distribution ,
3030 population ,
3131)
3232from FlowCyPy .opto_electronics import (
6464population = population .Sphere (
6565 name = "Population" ,
6666 concentration = 5e9 * ureg .particle / ureg .milliliter ,
67- diameter = distribution .Delta (position = 150 * ureg .nanometer ),
68- refractive_index = distribution .Delta (position = 1.39 * ureg .RIU ),
67+ diameter = distributions .Delta (value = 150 * ureg .nanometer ),
68+ refractive_index = distributions .Delta (value = 1.39 * ureg .RIU ),
6969 medium_refractive_index = 1.33 * ureg .RIU ,
7070)
7171scatterer_collection = ScattererCollection (populations = [population ])
You can’t perform that action at this time.
0 commit comments