From 0779941dc9d9e83c35aff9f07a563da31e5c62c4 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 2 Oct 2023 21:23:08 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=B0=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D1=87=D0=B8=D1=81=D0=B5=D0=BB=20=D0=B4?= =?UTF-8?q?=D0=BE=20=D1=81=D0=BE=D1=82=D1=8B=D1=85=20(#48)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В качестве решения выбрано округление до сотых Closes #32 --- statapp/main_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statapp/main_window.py b/statapp/main_window.py index 3fadbdc..9973cb7 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -74,7 +74,7 @@ class MainWindow(QMainWindow): gw = GenerateWindow() if gw.exec(): y = np.random.normal(gw.mat, gw.deviation, size=(gw.count, 1)) - self.model.updateAllData(y) + self.model.updateAllData(y.round(2)) self.isDataChanged = True @Slot() @@ -107,7 +107,7 @@ class MainWindow(QMainWindow): data = self.model.getData() - x_arr = x_arr.reshape(len(x_arr), 1) + x_arr = x_arr.reshape(len(x_arr), 1).round(2) # dd = dd.reshape(len(dd), 1) data = np.concatenate((data, x_arr), axis=1) # data = np.concatenate((data, dd), axis=1)