pynbody.util.get_eps

Contents

pynbody.util.get_eps#

pynbody.util.get_eps(f)[source]#

The gravitational softening length is determined from (in order of preference): 1. the array f[‘eps’] 2. f.properties[‘eps’] (scalar or unit)

Return a SimArray with correct units and dtype (same dtype as ‘mass’ array)