Spaces:
Build error
Build error
arcan3
commited on
Commit
·
80be153
1
Parent(s):
46fcc2f
mods
Browse files- funcs/plot_func.py +1 -1
- funcs/processor.py +1 -1
funcs/plot_func.py
CHANGED
@@ -58,7 +58,7 @@ def plot_sensor_data_from_json(json_file, sensor, slice_select=1):
|
|
58 |
plt.legend()
|
59 |
plt.tight_layout()
|
60 |
|
61 |
-
return fig, fig1
|
62 |
|
63 |
def plot_overlay_data_from_json(json_file, sensors, use_precise_timestamp=False):
|
64 |
# Read the JSON file
|
|
|
58 |
plt.legend()
|
59 |
plt.tight_layout()
|
60 |
|
61 |
+
return fig, fig1, None
|
62 |
|
63 |
def plot_overlay_data_from_json(json_file, sensors, use_precise_timestamp=False):
|
64 |
# Read the JSON file
|
funcs/processor.py
CHANGED
@@ -77,7 +77,7 @@ def process_data(input_file, slice_size=64, min_slice_size=16, sample_rate=20, w
|
|
77 |
file, len_ = slice_csv_to_json('output.csv', slice_size, min_slice_size, sample_rate, window_size=window_size)
|
78 |
|
79 |
# get the plot automatically
|
80 |
-
sensor_fig, slice_fig = plot_sensor_data_from_json(file, "GZ1")
|
81 |
overlay_fig = plot_overlay_data_from_json(file, ["GZ1", "GZ2", "GZ3", "GZ4"], use_precise_timestamp=True)
|
82 |
|
83 |
#
|
|
|
77 |
file, len_ = slice_csv_to_json('output.csv', slice_size, min_slice_size, sample_rate, window_size=window_size)
|
78 |
|
79 |
# get the plot automatically
|
80 |
+
sensor_fig, slice_fig, _ = plot_sensor_data_from_json(file, "GZ1")
|
81 |
overlay_fig = plot_overlay_data_from_json(file, ["GZ1", "GZ2", "GZ3", "GZ4"], use_precise_timestamp=True)
|
82 |
|
83 |
#
|