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

GadgetParticleDataset.get_particle_fields(fields: list[str]) dict[str, unyt_array]#

Get multiple particle fields as a dictionary of unyt arrays.

Parameters:

fields (List[str]) – A list of field names in the format "group_name.field_name".

Returns:

A dictionary mapping field names to their data as unyt arrays.

Return type:

dict

Raises:

KeyError – If any specified field does not exist in the dataset.