From 413680191ba36cf7b15999ea5dc976b95c753733 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:06:32 +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/data_manipulation.py | 1 - 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 - 5 files changed, 5 deletions(-) diff --git a/reflectivity_ui/interfaces/data_handling/data_manipulation.py b/reflectivity_ui/interfaces/data_handling/data_manipulation.py index 946c505d..c9acef86 100644 --- a/reflectivity_ui/interfaces/data_handling/data_manipulation.py +++ b/reflectivity_ui/interfaces/data_handling/data_manipulation.py @@ -361,7 +361,6 @@ def smart_stitch_reflectivity( scaling_errors = [running_error] for i in range(len(reduction_list) - 1): - # Low-Q data set _previous_ws = _prepare_workspace_for_stitching( reduction_list[i].cross_sections, xs, global_fit, "low_q_workspace" 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 f22caf65..fef5cde8 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 @@ -26,7 +26,6 @@ class MainWindowMock(object): class TestMainHandler(object): - app = QApplication(sys.argv) application = MainWindow() handler = MainHandler(application)