neutral
neutral(attr="")
Filters the catalogue to species with a net charge of zero and returns either the Specie objects or a chosen attribute of each. Preserves the relative catalogue order of the surviving species.
Parameters
- attr : str, optional
- Name of a
Specieattribute to extract. If given, returns that attribute value for each neutral species instead of theSpecieobject itself. Leave empty (default) to return theSpecieobjects.
Supported attributes are: charge elements exploded fidx index mass name serialized
Returns
- Vector[Specie or any]
- Neutral
Specieobjects in catalogue order, or the value of attr for each neutral species if attr was given.
Raises
- ValueError
- If attr is not a valid
Specieattribute name.