Skip to content

Commit

Permalink
Update alopeke_utils2.py
Browse files Browse the repository at this point in the history
Updating time range in `get_star_flux` to reference in alopeke_defs rather than hard coded time interval.
  • Loading branch information
charliekilpatrick authored Jan 15, 2024
1 parent 3c0aaae commit e714128
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def calc_zeropoint(data_dict, camera:str):
return(zpt, zpt_err)

def get_star_flux(date:str, data_dict):
mask = np.abs(data_dict['MJD_star1_full']-alopeke_defs.FRB_time[date].mjd)*24*3600<0.163
mask = np.abs(data_dict['MJD_star1_full']-alopeke_defs.FRB_time[date].mjd)*24*3600<alopeke_defs.ata.to('s').value

data_dict['mean_bkg'] = np.mean(data_dict['C_bkg_full'][mask])
data_dict['mean_star1'] = np.mean(data_dict['C_star1_full'][mask])
Expand Down

0 comments on commit e714128

Please sign in to comment.