Skip to content

Commit

Permalink
MR: small index correction for the star_flx and systematics
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuR18 committed Sep 13, 2024
1 parent d72bd29 commit 0c9747a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ForMoSA/nested_sampling/nested_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ def loglike(theta, theta_index, global_params, main_file, for_plot='no'):
if len(transm_obs_ns_u) != 0: # Merge the transmissions (if necessary)
transm_obs_ns_u = np.concatenate((transm_obs_ns_u, transm_obs[ind_spectro]))
if len(star_flx_obs_ns_u) != 0: # Merge star fluxes (if necessary)
star_flx_obs_ns_u = np.concatenate((star_flx_obs_ns_u, star_flx_obs[ind_grid_spectro_sel]),axis=0)
star_flx_obs_ns_u = np.concatenate((star_flx_obs_ns_u, star_flx_obs[ind_spectro]),axis=0)
if len(system_obs) != 0: # Merge systematics model (if necessary)
system_obs_ns_u = np.concatenate((system_obs_ns_u, system_obs[ind_grid_spectro_sel]), axis=0)
system_obs_ns_u = np.concatenate((system_obs_ns_u, system_obs[ind_spectro]), axis=0)
wav_obs_photo_ns_u = np.concatenate((wav_obs_photo_ns_u, wav_obs_photo[ind_photo]))
flx_obs_photo_ns_u = np.concatenate((flx_obs_photo_ns_u, flx_obs_photo[ind_photo]))
err_obs_photo_ns_u = np.concatenate((err_obs_photo_ns_u, err_obs_photo[ind_photo]))
Expand Down

0 comments on commit 0c9747a

Please sign in to comment.