Skip to content

Commit

Permalink
Apply automatic formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Aug 23, 2024
1 parent 45bde3c commit a246f32
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ess/isissans/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import sciline
import scipp as sc

from ess.sans.types import (
BackgroundRun,
DirectBeam,
Expand Down
3 changes: 2 additions & 1 deletion src/ess/isissans/mantidio.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
import sciline
import scipp as sc
import scippneutron as scn
from ess.sans.types import DirectBeam, DirectBeamFilename, Filename, RunType, SampleRun
from scipp.constants import g

from ess.sans.types import DirectBeam, DirectBeamFilename, Filename, RunType, SampleRun

from .io import CalibrationFilename, LoadedFileContents

try:
Expand Down
1 change: 1 addition & 0 deletions src/ess/isissans/sans2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import sciline
import scipp as sc

from ess.sans import providers as sans_providers
from ess.sans.types import DetectorMasks, RawDetector, SampleRun

Expand Down
1 change: 1 addition & 0 deletions src/ess/isissans/zoom.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2024 Scipp contributors (https://github.com/scipp)
import sciline

from ess.sans import providers as sans_providers

from .general import default_parameters
Expand Down
1 change: 1 addition & 0 deletions src/ess/loki/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sciline
import scipp as sc
from ess.reduce import nexus

from ess.sans import providers as sans_providers

from ..sans.common import gravity_vector
Expand Down
1 change: 1 addition & 0 deletions src/ess/loki/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import scipp as sc
from ess.reduce import nexus

from ess.sans.types import (
DetectorEventData,
Filename,
Expand Down
1 change: 1 addition & 0 deletions src/ess/loki/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
)
from ess.loki.io import load_nexus_monitor, load_nexus_source
from ess.reduce.nexus.json_nexus import JSONGroup

from ess.sans.conversions import monitor_to_wavelength, sans_monitor
from ess.sans.types import (
Filename,
Expand Down
1 change: 1 addition & 0 deletions tests/common_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
import pytest
import scipp as sc

from ess.sans.common import mask_range


Expand Down
3 changes: 2 additions & 1 deletion tests/io_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import scipp as sc
import scipp.testing
import scippnexus as snx
from scippnexus.application_definitions import nxcansas

from ess.sans.io import save_background_subtracted_iofq
from ess.sans.types import BackgroundSubtractedIofQ, OutFilename, RunNumber, RunTitle
from scippnexus.application_definitions import nxcansas


@pytest.mark.parametrize('use_edges', [True, False])
Expand Down
1 change: 1 addition & 0 deletions tests/isissans/sans2d_reduction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ess import isissans as isis
from ess import sans
from ess.isissans import MonitorOffset, SampleOffset, sans2d

from ess.sans.types import (
BackgroundRun,
BackgroundSubtractedIofQ,
Expand Down
1 change: 1 addition & 0 deletions tests/isissans/zoom_reduction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import scipp as sc
from ess import isissans as isis
from ess import sans

from ess.sans.types import (
BeamCenter,
CorrectForGravity,
Expand Down
1 change: 1 addition & 0 deletions tests/loki/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import scipp as sc
from ess import loki, sans

from ess.sans.types import (
BackgroundRun,
CorrectForGravity,
Expand Down
3 changes: 2 additions & 1 deletion tests/loki/directbeam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
import sciline
import scipp as sc
from ess import loki, sans
from scipp.scipy.interpolate import interp1d

from ess.sans.types import (
BeamCenter,
DimsToKeep,
QBins,
WavelengthBands,
WavelengthBins,
)
from scipp.scipy.interpolate import interp1d

sys.path.insert(0, str(Path(__file__).resolve().parent))
from common import loki_providers, make_params
Expand Down
3 changes: 2 additions & 1 deletion tests/loki/iofq_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import sciline
import scipp as sc
from ess import loki, sans
from scipp.testing import assert_identical

from ess.sans.conversions import ElasticCoordTransformGraph
from ess.sans.types import (
BackgroundSubtractedIofQ,
Expand All @@ -33,7 +35,6 @@
WavelengthBands,
WavelengthBins,
)
from scipp.testing import assert_identical

sys.path.insert(0, str(Path(__file__).resolve().parent))
from common import (
Expand Down
1 change: 1 addition & 0 deletions tests/normalization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pytest
import scipp as sc
from ess.isissans.data import sans2d_solid_angle_reference

from ess.sans import normalization

# See https://github.com/mantidproject/mantid/blob/main/instrument/SANS2D_Definition_Tubes.xml # noqa: E501
Expand Down

0 comments on commit a246f32

Please sign in to comment.