From 57dec07000e78d694986b1b90de42b84db14c1a7 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Thu, 28 Sep 2023 22:39:02 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= =?UTF-8?q?,=20=D0=BF=D1=80=D0=B8=20=D0=A1=D0=9A=D0=9E=20=3D=200=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statapp/main_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/statapp/main_window.py b/statapp/main_window.py index f3ff833..064b0ab 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -88,6 +88,8 @@ class MainWindow(QMainWindow): k = 2 - 1 / k if gfw.typeConnection == INDIRECT_LINK: k = 1 / k + if gfw.deviation == 0: + k = 1 x = np.random.normal(gfw.mat * (k ** 3), gfw.deviation * k, size=1) x_arr = np.append(x_arr, x)