Observations#
- class gammapy.data.Observations(observations=None)#
Bases:
collections.abc.MutableSequence
Container class that holds a list of observations.
- Parameters
- observationslist
A list of
Observation
Attributes Summary
ids
List of obs IDs (
list
)Methods Summary
append
(value)S.append(value) -- append value to the end of the sequence
clear
()count
(value)extend
(values)S.extend(iterable) -- extend sequence by appending elements from the iterable
index
(value, [start, [stop]])Raises ValueError if the value is not present.
insert
(idx, obs)S.insert(index, value) -- insert value before index
pop
([index])Raise IndexError if list is empty or index is out of range.
remove
(value)S.remove(value) -- remove first occurrence of value.
reverse
()S.reverse() -- reverse IN PLACE
select_time
(time_intervals)Select a time interval of the observations.
Attributes Documentation
Methods Documentation