pisces.extensions.simulation.gadget.particles.GadgetParticleDataset.get_particle_field#
- GadgetParticleDataset.get_particle_field(group_name: str, field_name: str) unyt_array #
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.