From 6bd918b3ba88407dad9a52fc344aeaf8004542fd Mon Sep 17 00:00:00 2001 From: Tom Selier Date: Mon, 2 Oct 2023 15:16:44 +0200 Subject: [PATCH] added an early exit --- src/experiments/algorithms/distribution_csv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/experiments/algorithms/distribution_csv.py b/src/experiments/algorithms/distribution_csv.py index 4f32eac..7f7495b 100644 --- a/src/experiments/algorithms/distribution_csv.py +++ b/src/experiments/algorithms/distribution_csv.py @@ -22,6 +22,7 @@ def calcNormalFunc(mean : float, sd : float, len : int): DATASET_PATH = "dataset\\" CSV_PATH = "src\\experiments\\algorithms\\data\\" BARK_TYPES = 8 +CSV_SAVE = False ## Arrays ## avgs_bgr = [[[],[],[]] for x in range(BARK_TYPES)] @@ -132,6 +133,9 @@ for i in range(BARK_TYPES): plt.show() ## CSVs ## +if not CSV_SAVE: + exit() + # BGR mean and std # with open(CSV_PATH + "bgr_stats.csv", 'w', newline='') as file: file.write("label,avg_b,avg_g,avg_r,std_b,std_g,std_r,\n")