From 5bf1a9473a50a872f2833751b52570fa767f7699 Mon Sep 17 00:00:00 2001 From: stephanbreimann Date: Fri, 5 Apr 2024 19:03:34 +0200 Subject: [PATCH] Start Python CI15 --- .../aaclust_plot_tests/test_aaclust_plot_correlation.py | 6 ++++-- tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py | 6 ++++-- tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py | 7 +++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/unit/aaclust_plot_tests/test_aaclust_plot_correlation.py b/tests/unit/aaclust_plot_tests/test_aaclust_plot_correlation.py index 15ac603a..1ac06569 100644 --- a/tests/unit/aaclust_plot_tests/test_aaclust_plot_correlation.py +++ b/tests/unit/aaclust_plot_tests/test_aaclust_plot_correlation.py @@ -9,8 +9,10 @@ # Helper function def adjust_vmin_vmax(vmin=None, vmax=None): - vmin = -10000 if vmin < -10000 else vmin - vmax = 10000 if vmax > 10000 else vmax + if vmin is not None: + vmin = -10000 if vmin < -10000 else vmin + if vmax is not None: + vmax = 10000 if vmax > 10000 else vmax return vmin, vmax diff --git a/tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py b/tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py index bb16ddcc..9d5f46bc 100644 --- a/tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py +++ b/tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py @@ -28,8 +28,10 @@ # Helper function def adjust_vmin_vmax(vmin=None, vmax=None): - vmin = -10000 if vmin < -10000 else vmin - vmax = 10000 if vmax > 10000 else vmax + if vmin is not None: + vmin = -10000 if vmin < -10000 else vmin + if vmax is not None: + vmax = 10000 if vmax > 10000 else vmax return vmin, vmax diff --git a/tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py b/tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py index 60257851..8c83896f 100644 --- a/tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py +++ b/tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py @@ -27,9 +27,12 @@ DICT_COLOR = dict(zip(LIST_CAT, VALID_COLORS)) +# Helper functions def adjust_vmin_vmax(vmin=None, vmax=None): - vmin = -10000 if vmin < -10000 else vmin - vmax = 10000 if vmax > 10000 else vmax + if vmin is not None: + vmin = -10000 if vmin < -10000 else vmin + if vmax is not None: + vmax = 10000 if vmax > 10000 else vmax return vmin, vmax