From 3f03ed3885275cb7bbbd3e0a6a229919aba1addc Mon Sep 17 00:00:00 2001 From: fazledyn-or Date: Fri, 8 Dec 2023 17:35:08 +0600 Subject: [PATCH] Fixed Inappropriate Logical Expression Signed-off-by: fazledyn-or --- lexos/models/rolling_window_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexos/models/rolling_window_model.py b/lexos/models/rolling_window_model.py index 02799517a..20a087a64 100644 --- a/lexos/models/rolling_window_model.py +++ b/lexos/models/rolling_window_model.py @@ -711,7 +711,7 @@ def _add_milestone(self, result_plot: List[go.Scattergl]) -> go.Figure: self._find_mile_stone_windows_indexes_in_all_windows() # Check if passed in mile stones exist in the file. - if milestones_dict is not {}: + if milestones_dict != {}: # Find max and min y value in the result plot. y_max_in_each_plot = \ [max(each_plot['y'][~np.isnan(each_plot['y'])])