franpoz / SHERLOCK

Easy and versatile open-source code to explore Kepler, K2 and TESS data in the search for exoplanets
MIT License
20 stars 7 forks source link

[deprecation warning] object-dtype columns with all-bool values #108

Closed martindevora closed 4 months ago

martindevora commented 1 year ago

in watson call:


metrics_df = metrics_df.append({'metric': 'snr_p2_score', 'score': np.abs(snr_p2_t0 - snr_p2_t02) / snr_p_t0, 'passed': snr_p2_t0 < 3 and snr_p2_t02 < 3}, ignore_index=True)
/home/mdevora/anaconda3/envs/sherlockenv/lib/python3.10/site-packages/watson/watson.py:280: FutureWarning: In a future version, object-dtype columns with all-bool values will not be included in reductions with bool_only=True. Explicitly cast to bool dtype instead.