Fixed binning in seconds (export)
This commit is contained in:
@ -155,7 +155,7 @@ class InfluxDataGetter:
|
|||||||
Parameters :
|
Parameters :
|
||||||
variables ([(str)]) : an array of variable names (Influx) to get the curves for.
|
variables ([(str)]) : an array of variable names (Influx) to get the curves for.
|
||||||
times ([int]) : the timerange we want the values in. It consists of two values which are Unix timestamps in seconds, first included, second excluded.
|
times ([int]) : the timerange we want the values in. It consists of two values which are Unix timestamps in seconds, first included, second excluded.
|
||||||
interval (int) : the interval (resolution) of the values to get (in nanoseconds). Allows data binning.
|
interval (int) : the interval (resolution) of the values to get (in seconds). Allows data binning.
|
||||||
|
|
||||||
Returns :
|
Returns :
|
||||||
pandas.DataFrame : the curves in a single pandas DataFrame
|
pandas.DataFrame : the curves in a single pandas DataFrame
|
||||||
|
@ -183,7 +183,7 @@ class InfluxGraph:
|
|||||||
start, end = int(start), int(end)
|
start, end = int(start), int(end)
|
||||||
|
|
||||||
queried_variables = variables.split(',')
|
queried_variables = variables.split(',')
|
||||||
if interval != "None" : interval = self.milliseconds_to_nano(int(interval))
|
if interval != "None" : interval = int(interval)
|
||||||
|
|
||||||
df = self.influx_data_getter.get_curves_data_frame(queried_variables, [start, end], interval)
|
df = self.influx_data_getter.get_curves_data_frame(queried_variables, [start, end], interval)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user