SpectrumList¶
-
class
specutils.SpectrumList[source]¶ Bases:
list,astropy.nddata.mixins.ndio.NDIOMixinA list that is used to hold a list of Spectrum1D objects
The primary purpose of this class is to allow loaders to return a list of heterogenous spectra that do have a spectral axis of the same length.
Attributes Summary
read(\*args, \*\*kwargs)write(\*args, \*\*kwargs)Methods Summary
append(self, object, /)Append object to the end of the list.
clear(self, /)Remove all items from list.
copy(self, /)Return a shallow copy of the list.
count(self, value, /)Return number of occurrences of value.
extend(self, iterable, /)Extend list by appending elements from the iterable.
index(self, value[, start, stop])Return first index of value.
insert(self, index, object, /)Insert object before index.
pop(self[, index])Remove and return item at index (default last).
remove(self, value, /)Remove first occurrence of value.
reverse(self, /)Reverse IN PLACE.
sort(self, /, \*[, key, reverse])Stable sort IN PLACE.
Attributes Documentation
-
read(\*args, \*\*kwargs) = <astropy.nddata.mixins.ndio.NDDataRead object>¶
-
write(\*args, \*\*kwargs) = <astropy.nddata.mixins.ndio.NDDataWrite object>¶
Methods Documentation
-
append(self, object, /)¶ Append object to the end of the list.
-
clear(self, /)¶ Remove all items from list.
-
copy(self, /)¶ Return a shallow copy of the list.
-
count(self, value, /)¶ Return number of occurrences of value.
-
extend(self, iterable, /)¶ Extend list by appending elements from the iterable.
-
index(self, value, start=0, stop=9223372036854775807, /)¶ Return first index of value.
Raises ValueError if the value is not present.
-
insert(self, index, object, /)¶ Insert object before index.
-
pop(self, index=-1, /)¶ Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
-
remove(self, value, /)¶ Remove first occurrence of value.
Raises ValueError if the value is not present.
-
reverse(self, /)¶ Reverse IN PLACE.
-
sort(self, /, \*, key=None, reverse=False)¶ Stable sort IN PLACE.
-