From 8a3e485aa5d0d2f4908d115aaf3e8ec5f9aea998 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 1 Oct 2023 21:24:12 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 c751541..72c7da8 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -73,7 +73,7 @@ def on_generateYaction_triggered(self): 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() @@ -106,7 +106,7 @@ def on_generateXaction_triggered(self): 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)