...
 
Commits (2)
......@@ -116,14 +116,14 @@ class DataLoad:
for key, value in dict_plot_data_ylabel.items():
for data in data_region:
if data[0]['arg'] in key and data[0]['category'] in key:
if str(funclabel_val) not in data[1]['lines']:
data[1]['lines'].append(str(float(funclabel_val)*self.funcLabel_multiplier))
if str(round(float(funclabel_val)*self.funcLabel_multiplier, 2)) not in data[1]['lines']:
data[1]['lines'].append(str(round(float(funclabel_val)*self.funcLabel_multiplier, 2)))
index_of_line = data[1]['lines'].index(str(funclabel_val))
index_of_line = data[1]['lines'].index(str(round(float(funclabel_val)*self.funcLabel_multiplier, 2)))
if len(data[1]['heat_data'])-1 < index_of_line:
data[1]['heat_data'].append([])
data[1]['heat_data'][index_of_line].append((float(xlabel_val)*self.xLabel_multiplier
data[1]['heat_data'][index_of_line].append((round(float(xlabel_val)*self.xLabel_multiplier, 2)
, value))
if value < data[1]['optim_y_val']: #optimal value is just minimum
data[1]['optim_y_val'] = value
......
......@@ -4,6 +4,7 @@ import sip
import sys
import shutil
import glob
import traceback
from pathlib import Path
from src import data_plot
from src import samples_plot
......@@ -58,6 +59,7 @@ class MainMenu(QtWidgets.QFrame, design_main_menu.Ui_MainMenu):
self.data_no_radar = data_load.DataLoad(config_path)
except Exception:
print("loading data directly from csv failed!!! using old radar get_data_for_gui.py !!!")
traceback.print_exc()
self.data_no_radar = None
self.config_path = config_path
self.config = run_path(config_path)
......