pynbody.halo.details.iord_mapping.make_iord_to_offset_mapper#
- pynbody.halo.details.iord_mapping.make_iord_to_offset_mapper(iord: ndarray) IordToOffset[source]#
Given an array of unique integers, iord, make an object which maps from an iord value to offset in the array.
i.e. given an iord array and a subset of values my_iord_values,
make_iord_to_offset_mapper(iord).map_ignoring_order(my_iord_values)
returns the indexes of my_iord_values in the iord array.