diff --git a/binomialbias/app.py b/binomialbias/app.py index 19dc273..7f8d5d2 100644 --- a/binomialbias/app.py +++ b/binomialbias/app.py @@ -51,6 +51,7 @@ def make_globaldict(): else: slider_keys = [] text_keys = ['ntt', 'fe', 'nat'] +round_keys = ['nt', 'ne', 'na', 'ntt'] # These quantities need to be rounded ui_keys = slider_keys + text_keys # Define the app defaults @@ -245,7 +246,7 @@ def reconcile_inputs(): gv = g[k] uv = bbm.to_num(u[k]) if not np.isnan(uv): - if k in slider_keys: + if k in round_keys: uv = round(uv) match = sc.approx(gv, uv) if not match: # Avoid floating point errors diff --git a/binomialbias/main.py b/binomialbias/main.py index c8bfe74..bb8851b 100644 --- a/binomialbias/main.py +++ b/binomialbias/main.py @@ -355,9 +355,7 @@ def plot(self, dist_color='cornflowerblue', cdf_color='darkblue', ci_color='k', if gap or i == 1: ax.text(ira, dy+pmf[ira],'$n_a$', **textkw) - print('TEMP HI I AM', d.n, vmax, type(d.n), type(vmax), d.n/vmax*0.3) - - # ax.set_aspect(d.n/vmax*0.3) + ax.set_aspect(d.n/vmax*0.3) # Add frame labels if letters: