From 8b7fabfa46d546b1969bdf9f4800cb0e06fa186a Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Thu, 28 Sep 2023 16:12:25 +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=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B8?= =?UTF-8?q?=D0=B7=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statapp/models/fileslc_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statapp/models/fileslc_model.py b/statapp/models/fileslc_model.py index cc25980..b8acde7 100644 --- a/statapp/models/fileslc_model.py +++ b/statapp/models/fileslc_model.py @@ -17,7 +17,7 @@ class FileSLCModel: def loadFile(self): self.file_name, _ = QFileDialog.getOpenFileName(None, "Загрузить файл", "", "Files (*.txt;*.csv)") - if not self.file_name: + if self.file_name: try: content = np.genfromtxt(self.file_name, delimiter=',', invalid_raise=True) except ValueError as e: @@ -30,4 +30,4 @@ class FileSLCModel: def closeFile(self): self.file_name = None - pass \ No newline at end of file + pass