cholla_utils.load_field¶
- cholla_utils.load_field(snap, /, field, *, idx=None)¶
Loads in 1 or more fields for a snapshot
- Parameters:
snap – Path to the snapshot
field – The name of a single field to load or a sequence of field names
idx – Optionally specifies a tuple of 3 slice instances that specify the subset of indices to load from disk. The easiest way to specify this is by using numpy.s_[…]
- Returns:
A single array of field data, or a dictionary of field data (depending on whether the field is a single string or a sequence).
- Return type:
np.ndarray or dict[str, np.ndarray]