pisces.extensions.simulation.gadget.particles.GadgetParticleDataset.num_particles#

property GadgetParticleDataset.num_particles: dict[str, int]#

Number of particles in each particle group.

This property returns a dictionary mapping each particle group name to the number of particles it contains, as specified by the NUMBER_OF_PARTICLES attribute in each group’s metadata.

All groups must define this attribute; otherwise, a ValueError is raised.

Returns:

A dictionary mapping group names to the number of particles in each group.

Return type:

dict

Raises:

ValueError – If any group is missing the NUMBER_OF_PARTICLES attribute.