Modified GRAD_WINDOW_LENGTH calculation for sooner calculation of valid...
All threads resolved!
All threads resolved!
Compare changes
This MR includes two fixes and a little extra documentation for the ptemcee
module.
mean_log_posterior
array to np.nan
GRAD_WINDOW_LENGTH
over which the gradient of the mean log posterior is calculated to be one of two cases:
2 * ((ndim + 1) // 2) + 1
or2 * (nwalkers // 2) + 1
, the original calculation of this variable in bilby, when ndim <= 3
, as otherwise, the gradient calculation fails (because GRAD_WINDOW_LENGTH
becomes too small)