Skip to content

Commit

Permalink
Add test correction (#131)
Browse files Browse the repository at this point in the history
* Add test correction

* Update test_correction.py
  • Loading branch information
LuisSanchez25 authored Jul 30, 2024
1 parent 84f10db commit 75d7e66
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions xedocs/schemas/corrections/implementations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
from .z_bias import *
from .cs2_aft_corrections import *
from .se_gain_partition import *
from .test_correction import *
18 changes: 18 additions & 0 deletions xedocs/schemas/corrections/implementations/test_correction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This will be a correction designed for testing purposes.
# This SHOULD NOT be used in production.

import rframe

from ..base_corrections import TimeSampledCorrection
from ...constants import DETECTOR

class TestCorrection(TimeSampledCorrection):
_ALIAS = "test_corrections"

# Correction identical to PMT gains.
# Used for testing

detector: DETECTOR = rframe.Index()
pmt: int = rframe.Index(ge=0)

value: float

0 comments on commit 75d7e66

Please sign in to comment.