| Lattice Microbes 2.5
    This is for whole cell modeling | 
| Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| ParticleSizeValidator | size_validator (self) | 
| enable_particle_sizes (self, bool enable=True) | |
| set_particle_size (self, species, int size) | |
| int | get_particle_size (self, species) | 
| dict | get_all_particle_sizes (self) | 
| distribute_concentration_safe (self, species, region, float concentration) | |
| distribute_number_safe (self, species, region, int count) | |
| Dict | get_capacity_summary (self) | 
| validate_all_species (self) | |
| print_capacity_summary (self) | |
| Public Attributes | |
| lattice | |
| siteLattice = self.lattice.getSiteLatticeView() | |
| particleLattice = self.lattice.getParticleLatticeView() | |
| speciesList | |
| Protected Member Functions | |
| _upgrade_to_extended_lattice (self) | |
| _copy_lattice_data (self, source, dest) | |
| Protected Attributes | |
| _size_validator = None | |
| dict | _particle_sizes = {} | 
Mixin class to add particle size support to RDME classes.
| jLM.ParticleSizeSupport.ParticleSizeMixin.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) | 
| 
 | protected | 
Copy lattice data from source to destination.
| 
 | protected | 
Upgrade to ByteLatticeExtended for size support.
| jLM.ParticleSizeSupport.ParticleSizeMixin.distribute_concentration_safe | ( | self, | |
| species, | |||
| region, | |||
| float | concentration ) | 
Distribute concentration with size validation.
Args:
    species: Species object or name
    region: Region object or name
    concentration: Concentration in M
Raises:
    ParticleSizeError: If concentration exceeds capacity
 | jLM.ParticleSizeSupport.ParticleSizeMixin.distribute_number_safe | ( | self, | |
| species, | |||
| region, | |||
| int | count ) | 
Distribute particle count with size validation.
Args:
    species: Species object or name
    region: Region object or name
    count: Number of particles
Raises:
    ParticleSizeError: If count exceeds capacity
 | jLM.ParticleSizeSupport.ParticleSizeMixin.enable_particle_sizes | ( | self, | |
| bool | enable = True ) | 
Enable or disable particle size checking.
Args:
    enable: Whether to enable size checking
 | dict jLM.ParticleSizeSupport.ParticleSizeMixin.get_all_particle_sizes | ( | self | ) | 
Get all particle sizes as a dictionary mapping species ID to size.
Returns:
    dict: Dictionary mapping species ID (int) to particle size (int)
 | Dict jLM.ParticleSizeSupport.ParticleSizeMixin.get_capacity_summary | ( | self | ) | 
Get a summary of capacity information for all species.
Returns:
    Dictionary with capacity information for each species
 | int jLM.ParticleSizeSupport.ParticleSizeMixin.get_particle_size | ( | self, | |
| species ) | 
Get the size for a species.
| jLM.ParticleSizeSupport.ParticleSizeMixin.print_capacity_summary | ( | self | ) | 
Print a formatted capacity summary.
| jLM.ParticleSizeSupport.ParticleSizeMixin.set_particle_size | ( | self, | |
| species, | |||
| int | size ) | 
Set the size for a species.
Args:
    species: Species object or name
    size: Size of the particle
Example:
    sim.set_particle_size(sim.sp.Protein, 2)
    sim.set_particle_size("LargeComplex", 4)
 | ParticleSizeValidator jLM.ParticleSizeSupport.ParticleSizeMixin.size_validator | ( | self | ) | 
Get the particle size validator.
| jLM.ParticleSizeSupport.ParticleSizeMixin.validate_all_species | ( | self | ) | 
Validate all species against size constraints.
| 
 | protected | 
| 
 | protected | 
| jLM.ParticleSizeSupport.ParticleSizeMixin.lattice | 
| jLM.ParticleSizeSupport.ParticleSizeMixin.particleLattice = self.lattice.getParticleLatticeView() | 
| jLM.ParticleSizeSupport.ParticleSizeMixin.siteLattice = self.lattice.getSiteLatticeView() | 
| jLM.ParticleSizeSupport.ParticleSizeMixin.speciesList |