-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Roman jump detection to ramp fitting (#215)
- Loading branch information
Showing
16 changed files
with
2,118 additions
and
598 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
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
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
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
from ._fit_ramps import fit_ramps, RampFitOutputs | ||
from ._core import Parameter, Variance, Diff, RampJumpDQ | ||
|
||
__all__ = ['fit_ramps', 'RampFitOutputs', 'Parameter', 'Variance', 'Diff', 'RampJumpDQ'] |
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,58 @@ | ||
from libcpp.vector cimport vector | ||
from libcpp.stack cimport stack | ||
from libcpp.deque cimport deque | ||
|
||
|
||
cdef struct RampIndex: | ||
int start | ||
int end | ||
|
||
|
||
cdef struct RampFit: | ||
float slope | ||
float read_var | ||
float poisson_var | ||
|
||
|
||
cdef struct RampFits: | ||
vector[RampFit] fits | ||
vector[RampIndex] index | ||
vector[int] jumps | ||
RampFit average | ||
|
||
|
||
cdef struct ReadPatternMetadata: | ||
vector[float] t_bar | ||
vector[float] tau | ||
vector[int] n_reads | ||
|
||
|
||
cdef struct Thresh: | ||
float intercept | ||
float constant | ||
|
||
|
||
cpdef enum Diff: | ||
single = 0 | ||
double = 1 | ||
|
||
|
||
cpdef enum Parameter: | ||
intercept = 0 | ||
slope = 1 | ||
|
||
|
||
cpdef enum Variance: | ||
read_var = 0 | ||
poisson_var = 1 | ||
total_var = 2 | ||
|
||
|
||
cpdef enum RampJumpDQ: | ||
JUMP_DET = 4 | ||
|
||
|
||
cpdef float threshold(Thresh thresh, float slope) | ||
cdef float get_power(float s) | ||
cdef deque[stack[RampIndex]] init_ramps(int[:, :] dq) | ||
cpdef ReadPatternMetadata metadata_from_read_pattern(list[list[int]] read_pattern, float read_time) |
Oops, something went wrong.