Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lightcurve/cos.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def extract(filename, **kwargs):

verbosity = kwargs.get('verbosity', 0)
step = kwargs.get('step', 1)
step = step - (step% 0.032) #step recalculated as a multiple of the base refresh rate (32 ms)
wlim = kwargs.get('wlim', None)
#-- If not specific wavlengths, truncate to good wavelengths
#-- for each detector
Expand Down Expand Up @@ -144,7 +145,7 @@ def extract(filename, **kwargs):

end = min(end, exptime)

all_steps = np.arange(start, end+step, step)
all_steps = np.float32(np.arange(start, end+step, step))

if all_steps[-1] > end:
truncate = True
Expand Down Expand Up @@ -226,7 +227,7 @@ def extract(filename, **kwargs):
gross = gross
flux = flux - background_flux
background = background
mjd = hdu[1].header['EXPSTART'] + np.array(all_steps[:-1]) * SECOND_PER_MJD
mjd = hdu[1].header['EXPSTART'] + np.float_(np.array(all_steps[:-1])) * SECOND_PER_MJD
bins = np.ones(len(gross)) * step
times = all_steps[:-1]

Expand Down