Skip to content

Commit

Permalink
Some doubles back to floats for memoryview compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Brandt committed Dec 17, 2024
1 parent 3ab5ff4 commit 1c102bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stcal/ramp_fitting/ols_cas22/_ramp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ cdef inline RampFit fit_ramp(float[:] resultants_,
# index of the ramp. Therefore, the Python slice needed to get all the
# data within the ramp is:
# ramp.start:ramp.end + 1
cdef double[:] resultants = resultants_[ramp.start:ramp.end + 1]
cdef double[:] t_bar = t_bar_[ramp.start:ramp.end + 1]
cdef double[:] tau = tau_[ramp.start:ramp.end + 1]
cdef float[:] resultants = resultants_[ramp.start:ramp.end + 1]
cdef float[:] t_bar = t_bar_[ramp.start:ramp.end + 1]
cdef float[:] tau = tau_[ramp.start:ramp.end + 1]
cdef int[:] n_reads = n_reads_[ramp.start:ramp.end + 1]

# Compute mid point time
Expand Down

0 comments on commit 1c102bc

Please sign in to comment.