Skip to content

Commit

Permalink
Clarify variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Oct 11, 2023
1 parent 32f1d78 commit 844ad41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stcal/ramp_fitting/ols_cas22/_core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ cdef float[2][6] PTABLE = [

@cython.boundscheck(False)
@cython.wraparound(False)
cdef inline float get_power(float s):
cdef inline float get_power(float signal):
"""
Return the power from Casertano+22, Table 2
Parameters
----------
s: float
signal: float
signal from the resultants
Returns
Expand All @@ -102,7 +102,7 @@ cdef inline float get_power(float s):
"""
cdef int i
for i in range(6):
if s < PTABLE[0][i]:
if signal < PTABLE[0][i]:
return PTABLE[1][i - 1]

return PTABLE[1][i]
Expand Down

0 comments on commit 844ad41

Please sign in to comment.