-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test correction * Update test_correction.py
- Loading branch information
1 parent
84f10db
commit 75d7e66
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
xedocs/schemas/corrections/implementations/test_correction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |