From c5c9923cc85561782716b7c437f24bef4a03de91 Mon Sep 17 00:00:00 2001 From: Adam Shapiro Date: Tue, 11 Jun 2024 19:43:57 -0400 Subject: [PATCH] Optimized table using native JS for filtering. --- .../fusion_engine_client/analysis/analyzer.py | 178 +++++++++++++++--- 1 file changed, 150 insertions(+), 28 deletions(-) diff --git a/python/fusion_engine_client/analysis/analyzer.py b/python/fusion_engine_client/analysis/analyzer.py index e8e447f8..6ffaa9df 100755 --- a/python/fusion_engine_client/analysis/analyzer.py +++ b/python/fusion_engine_client/analysis/analyzer.py @@ -2213,44 +2213,166 @@ def plot_events(self): if system_time_ns in times_before_resets: rows[-1][2] = f'{(times_before_resets[system_time_ns]):.3f}' - table_html = _data_to_table(table_columns, rows, row_major=True, id='event_log') + table_data = ',\n '.join([repr(row) for row in rows]) body_html = """\ """ + f"""\

Device Event Log

-
- - -
Displaying
{len(rows)}
/{len(rows)} event notifications. -
{table_html}
+
+
+ """ self._add_page(name='event_log', html_body=body_html, title="Event Log")