pisces.particles.base.ParticleDataset.get_particle_field#
- ParticleDataset.get_particle_field(group_name: str, field_name: str) unyt_array [source]#
Get the particle field data as a unyt array.
- Parameters:
- Returns:
The data for the specified field, converted to a unyt array.
- Return type:
- Raises:
KeyError – If the specified group or field does not exist in the dataset.