Closed LucaNap closed 1 year ago
Hi @LucaNap,
Can you provide a minimum working example for this problem? I've been performing fits with the new version using multi-threading with dynesty
and see no issues so far. This is with the latest version and dynesty
2.1.3.
N.
Hey @nespinoza. Thanks for the quick response.
For consistency, I have used the tutorial code ("Joint transit and radial-velocity fits"). Apparently, setting nthreads>1 indeed works with this code. However, the error pops up again if I use lightkurve for the lc input:
lc = lightkurve.search_lightcurve('TOI 141')[0].download().normalize() lc = lc[ lc.flux > 0] times['TESS'], fluxes['TESS'], fluxes_error['TESS'] = lc.time.value+2457000, lc.flux.value, lc.flux_err.value
EDIT: The error goes away using np.array() for both lc.flux and lc.flux_err values! I guess this error has something to do with the "new" MaskedNDArray fluxes used in lightkurve.
P.S. This is on a windows 11 machine with python=3.8 installed on conda, along with juliet and lightkurve only (latest versions).
Interesting! This seems like lightkurve
perhaps not closing some pools on Windows? In any case, given this is not a direct juliet
issue (at least for now), I will close this comment --- but please if you or anyone else finds this is a juliet
issue, feel free to bring this back to my attention!
N.
Hi. I have installed the new version of juliet (2.2.3), which includes dynesty (2.1.3). However, I have noticed that now I can't use multiple threads with dynesty because of a recursion depth error: