iracema.core.point¶
This module contain classes used to manipulate points in TimeSeries objects.
- 
class iracema.core.point.Point(value='0', context=None)[source]¶
- Bases: - decimal.Decimal- A point object represents an instant in a time series, i.e., one specific sample index. It is flexible enough to locate samples corresponding to the same instant in time series with different sampling rates. - Hint - This class is also available at the main package level as - iracema.Point.- 
property time¶
- Return the time of the points. This method will be deprecated soon. 
 
- 
property 
- 
class iracema.core.point.PointList(points=None)[source]¶
- Bases: - collections.abc.MutableSequence- List of points. - Hint - This class is also available at the main package level as - iracema.PointList.- 
classmethod load_from_file(file_name)[source]¶
- Instantiate a list of points, loaded from a CSV file. Each line in the file must contain the position of a single point. The position must be specified in seconds. 
 - 
classmethod from_list_of_indexes(list_indexes, time_series)[source]¶
- Instantiate a list of points from a list of indexes - list_indexesand a- time_seriesobject.
 - 
property time¶
- Return a list with the time of the points. This method will be deprecated soon. 
 - 
map_indexes(time_series)[source]¶
- Return an array with the indexes of - time_seriesthat correspond to the points in the list.
 
- 
classmethod