Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 2, 2024
1 parent 7d8e4e2 commit e895188
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import pytest

from garnet.reduction.integration import PeakEllipsoid, PeakSphere
from garnet.reduction.plan import ReductionPlan

Expand Down
1 change: 1 addition & 0 deletions tests/test_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess

import pytest

from garnet.reduction.normalization import Normalization
from garnet.reduction.plan import ReductionPlan

Expand Down
1 change: 1 addition & 0 deletions tests/test_plan.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ub.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import subprocess
import sys

import garnet.workflow
import pytest

import garnet.workflow
from garnet.workflow import main as main


Expand Down

0 comments on commit e895188

Please sign in to comment.