PyANGKernel.GKContext¶
- class GKContext¶
Context time for time dependent data (As Time Series).
Details
A
GKContextholds the initial and end time for data that depends on time (as time series either produced by a simulator or from real detection data).It includes also a “now” time used to fetch (or show) data at a given instant.
See also
Synopsis¶
Methods¶
def
__init__()def
getFrom()def
getNow()def
getNowAsMS()def
getTo()def
isAggregated()def
isValid()def
__ne__()def
__eq__()def
sameDay()def
setAggregated()def
setFrom()def
setNow()def
setTime()def
setTo()def
toString()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- PyANGKernel.GKContext.anyContext¶
- __init__()¶
- getAggregationType()¶
- Return type:
Defines the aggregation type to be used when the context is aggregated.
Returns ‘from’ time
Returns ‘now’ time
Returns ‘now’ time as MS since epoch
Returns ‘to’ time
On time series, it returns the aggregated data instead of an interval value.
Returns true if from, to and now are valid.
Different operator.
Equal operator.
Returns true if the initial and end time are in the same day.
- setAggregated(value)¶
- Parameters:
value – bool
On time series, it returns the aggregated data instead of an interval value.
See also
- setAggregationType(t)¶
- Parameters:
t –
AggregationType
Defines the aggregation type to be used when the context is aggregated.
Sets ‘from’ time
Sets ‘now’ time
Sets the ‘from’, ‘to’ and ‘now’ times
Sets ‘to’ time
Returns a QString description of the context.