From ac2158d47a86a271375f9d9a5f3ff218c82e259a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 06:17:25 +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 - reflectivity_ui/interfaces/smooth_dialog.py | 1 - test/conftest.py | 1 - .../interfaces/event_handlers/test_main_handler.py | 1 - 4 files changed, 4 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/reflectivity_ui/interfaces/smooth_dialog.py b/reflectivity_ui/interfaces/smooth_dialog.py index 5b6bb503..7fd12b2b 100644 --- a/reflectivity_ui/interfaces/smooth_dialog.py +++ b/reflectivity_ui/interfaces/smooth_dialog.py @@ -113,7 +113,6 @@ def drawPlot(self): self.ui.sigmaY.setValue(sigma_y) elif self.ui.qxVSqz.isChecked(): - qz_max = max(Qz[I > 0].max(), qz_max) qz_min = min(Qz[I > 0].min(), qz_min) qx_min = min(qx_min, Qx[I > 0].min()) 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)