diff options
author | Tibor Frank <tifrank@cisco.com> | 2022-04-21 07:38:49 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-04-21 07:38:49 +0200 |
commit | 25c3aa43a0022d180fc9b31d68071790721c008b (patch) | |
tree | 690ae14e333e9a0a75905964f2313458a3f8e334 /resources/tools/dash/app/pal/trending/graphs.py | |
parent | dcdb82a6a1ae769c72546d642b1c3a38299d97b8 (diff) |
feat(uti): Remove button "Display"
- not needed
Change-Id: Ic2bc74af1574e766c007f310f626c2e9ba61bbc1
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/trending/graphs.py')
-rw-r--r-- | resources/tools/dash/app/pal/trending/graphs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/tools/dash/app/pal/trending/graphs.py b/resources/tools/dash/app/pal/trending/graphs.py index 6e0bcb55eb..7089e2c080 100644 --- a/resources/tools/dash/app/pal/trending/graphs.py +++ b/resources/tools/dash/app/pal/trending/graphs.py @@ -203,6 +203,8 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame, return list() x_axis = [d for d in df["start_time"] if d >= start and d <= end] + if not x_axis: + return list() anomalies, trend_avg, trend_stdev = _classify_anomalies( {k: v for k, v in zip(x_axis, df[_VALUE[ttype]])} |