change_attributes¶
Module: missions.nodes.type_manipulation.change_attributes
¶
Change attributes of incoming data
Inheritance diagram for pySPACE.missions.nodes.type_manipulation.change_attributes
:
ChangeTimeSeriesAttributesNode
¶
-
class
pySPACE.missions.nodes.type_manipulation.change_attributes.
ChangeTimeSeriesAttributesNode
(change, tolerance=1000, **kwargs)[source]¶ Bases:
pySPACE.missions.nodes.base_node.BaseNode
Change the attributes of incoming
TimeSeries
For instance when several data sets are used as input data, but the start and end time of the time series objects should remain unique, then this node can be used to adjust the start and end time.
Parameters
change: String. Specifies which attribute to change. At the moment only ‘time’ is implemented.
- time:
- Start time, end time and tag are changed to keep this attributes unique through the whole processing
tolerance: Only needed if the change parameter is set to ‘time’. If for the incoming time series object ts holds
ts.start_time + tolerance < ts_last.start_time
(which means a new set started), than attributes of ts associated with time are changed. The tolerance parameter is important since it is not guaranteed that incoming objects are sorted in time. Check your windower spec file to determine if there are overlapping window definitions that may be result in not-time-sorted order.
(Optional, default: 1000)
Exemplary Call
- node : Change_Time_Series_Attributes parameters : change : "time" tolerance: 4000 # sliding window range
Author: Anett Seeland (anett.seeland@dfki.de)
Created: 2012/02/21
POSSIBLE NODE NAMES: - Change_Time_Series_Attributes
- ChangeTimeSeriesAttributes
- ChangeTimeSeriesAttributesNode
POSSIBLE INPUT TYPES: - TimeSeries
Class Components Summary
_execute
(data)Change data attributes if change constraints are true. get_output_type
(input_type[, as_string])input_types
-
input_types
= ['TimeSeries']¶