pynbody.family.get_family

Contents

pynbody.family.get_family#

pynbody.family.get_family(name, create=False)[source]#

Returns a Family object corresponding to the specified string.

Parameters:
  • name (str or Family) – The name of the family to retrieve. If a Family object is passed, it is returned unchanged.

  • create (bool) – If True, a new family is created if the specified family does not exist. Default is False. If False, a ValueError is raised if the specified family does not exist.