Skip to content

Commit

Permalink
Correct type of tuple to a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Jun 11, 2024
1 parent 7245e20 commit 9db0cef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rundetection/rules/osiris_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OsirisReductionModeRule(Rule[bool]):

# The spec phase tuples are (<phase6>, <phase10>) for the next 2 arrays Based on the PDF available here:
# https://www.isis.stfc.ac.uk/Pages/osiris-user-guide.pdf.
SPECTROSCOPY_PHASES: ClassVar[list[tuple[int, int]]] = (
SPECTROSCOPY_PHASES: ClassVar[list[tuple[int, int]]] = [
(8573, 14250),
(6052, 11250),
(7500, 12500),
Expand All @@ -50,9 +50,9 @@ class OsirisReductionModeRule(Rule[bool]):
(8207, 13502),
(3717, 5675),
(3217, 4904),
)
]

DIFFRACTION_PHASES: ClassVar[list[tuple[int, int]]] = (
DIFFRACTION_PHASES: ClassVar[list[tuple[int, int]]] = [
(1011, 1566),
(4599, 7715),
(7590, 12859),
Expand All @@ -64,7 +64,7 @@ class OsirisReductionModeRule(Rule[bool]):
(26062, 3609),
(28953, 8228),
(32144, 13367),
)
]

def _is_spec_phase(self, phase10: float, phase6: float) -> bool:
for phases in self.SPECTROSCOPY_PHASES:
Expand Down

0 comments on commit 9db0cef

Please sign in to comment.