py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
6.89k stars 916 forks source link

Fix issue in bar_plot with misspecified confidence intervals #1081

Closed bloebp closed 7 months ago

bloebp commented 7 months ago

If the confidence intervals are misspecified, e.g., greater lower bound than upper bound, the method threw an error before. This, however, can sometimes happen due to precision errors in some algorithms and lead to random build fails. This change fixes the issue and ignores invalid intervals accordingly.

bloebp commented 7 months ago

Build should be fixed after: https://github.com/py-why/dowhy/pull/1080