From fd942841f7156e97d63c21b9d3e07f37a58031a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:40:44 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_integration.py | 1 + tests/test_normalization.py | 1 + tests/test_plan.py | 1 + tests/test_plots.py | 1 + tests/test_ub.py | 3 ++- tests/test_workflow.py | 3 ++- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 304525c..c366369 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -3,6 +3,7 @@ import numpy as np import pytest + from garnet.reduction.integration import PeakEllipsoid, PeakSphere from garnet.reduction.plan import ReductionPlan diff --git a/tests/test_normalization.py b/tests/test_normalization.py index c133705..1376ff8 100644 --- a/tests/test_normalization.py +++ b/tests/test_normalization.py @@ -2,6 +2,7 @@ import subprocess import pytest + from garnet.reduction.normalization import Normalization from garnet.reduction.plan import ReductionPlan diff --git a/tests/test_plan.py b/tests/test_plan.py index 3782544..8ece664 100644 --- a/tests/test_plan.py +++ b/tests/test_plan.py @@ -1,6 +1,7 @@ import os import pytest + from garnet.reduction.integration import Integration from garnet.reduction.normalization import Normalization from garnet.reduction.plan import ReductionPlan diff --git a/tests/test_plots.py b/tests/test_plots.py index f90edc2..8ea59e4 100644 --- a/tests/test_plots.py +++ b/tests/test_plots.py @@ -3,6 +3,7 @@ import numpy as np import scipy.linalg import scipy.spatial + from garnet.plots.peaks import PeakPlot, RadiusPlot from garnet.plots.volume import SlicePlot from garnet.reduction.integration import PeakEllipsoid, PeakSphere diff --git a/tests/test_ub.py b/tests/test_ub.py index 937123e..2853c30 100644 --- a/tests/test_ub.py +++ b/tests/test_ub.py @@ -1,7 +1,8 @@ import numpy as np -from garnet.reduction.ub import Optimization from mantid.simpleapi import AddPeakHKL, CreatePeaksWorkspace, SetUB +from garnet.reduction.ub import Optimization + def create_peaks(name, a, b, c, alpha, beta, gamma): CreatePeaksWorkspace(NumberOfPeaks=0, OutputType="LeanElasticPeak", OutputWorkspace=name) diff --git a/tests/test_workflow.py b/tests/test_workflow.py index 9dd0231..d76f8a0 100644 --- a/tests/test_workflow.py +++ b/tests/test_workflow.py @@ -2,8 +2,9 @@ import subprocess import sys -import garnet.workflow import pytest + +import garnet.workflow from garnet.workflow import main as main