Fixed binning in seconds (export)

This commit is contained in:
l_samenv
2024-08-28 09:12:18 +02:00
parent d81f2024ec
commit 144a6aa763
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ class InfluxDataGetter:
Parameters :
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.
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 :
pandas.DataFrame : the curves in a single pandas DataFrame

View File

@ -183,7 +183,7 @@ class InfluxGraph:
start, end = int(start), int(end)
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)