From 4b92ae13d89aaad9ec6a822f64927d83b8d0df30 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 04:33:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- reflectivity_ui/interfaces/data_handling/gisans.py | 1 - test/conftest.py | 1 - .../interfaces/event_handlers/test_main_handler.py | 1 - 3 files changed, 3 deletions(-) diff --git a/reflectivity_ui/interfaces/data_handling/gisans.py b/reflectivity_ui/interfaces/data_handling/gisans.py index 207a2d1f..0355eccd 100644 --- a/reflectivity_ui/interfaces/data_handling/gisans.py +++ b/reflectivity_ui/interfaces/data_handling/gisans.py @@ -156,7 +156,6 @@ def merge(reduction_list, pol_state, wl_min=0, wl_max=100): def rebin_extract(reduction_list, pol_state, wl_min, wl_max, qy_npts=50, qz_npts=50, use_pf=False): - binning = (qy_npts + 1, qz_npts + 1) qy, qz, pf, intensity, d_intensity, _ = merge(reduction_list, pol_state, wl_min=wl_min, wl_max=wl_max) if use_pf: diff --git a/test/conftest.py b/test/conftest.py index 4c47567c..68dc0732 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -21,7 +21,6 @@ def data_server(): r"""Object containing info and functionality for data files""" class _DataServe(object): - _directory = os.path.join(os.path.dirname(this_module_path), "data") @property diff --git a/test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py b/test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py index d2a6d84e..74ee82f4 100644 --- a/test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py +++ b/test/unit/reflectivity_ui/interfaces/event_handlers/test_main_handler.py @@ -24,7 +24,6 @@ class MainWindowMock(object): class TestMainHandler(object): - app = QApplication(sys.argv) application = MainWindow() handler = MainHandler(application)