added an early exit

This commit is contained in:
Tom Selier 2023-10-02 15:16:44 +02:00
parent 509ffd24b1
commit 6bd918b3ba

View File

@ -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")