pynbody.halo.details.iord_mapping.IordToOffset

pynbody.halo.details.iord_mapping.IordToOffset#

class pynbody.halo.details.iord_mapping.IordToOffset[source]#

Bases: ABC

Methods

map_ignoring_order(i)

Given an array of iord values, return the corresponding fpos values.

__init__(*args, **kwargs)#
abstract map_ignoring_order(i: ndarray | int) ndarray | int[source]#

Given an array of iord values, return the corresponding fpos values.

Warning: The returned values are not guaranteed to be in the same order as the input iord array.