ids function

Retrieves or sets the ids of a Spectra* object.