UT-CHG / BET

Python package for data-consistent stochastic inverse and forward problems.
http://ut-chg.github.io/BET
Other
11 stars 21 forks source link

fixed invert bug in calculateR.py where kdes computed twice. #401

Open yentyu opened 2 years ago

yentyu commented 2 years ago

Previously, the invertto* functions called generate_output_kdes and then invert. But invert also called generate_output_kdes, effectively doing this same computation twice.

Removed generate_output_kdes from the invertto* functions and made minor adjustments so that these functions have access to the other info they need (i.e., number of clusters and the appropriate sample_set_base objects).