From 4ce4ab4e38508bf605178d54ca4c74bbac5ef312 Mon Sep 17 00:00:00 2001 From: Yerdos Ordabayev <50752571+ordabayevy@users.noreply.github.com> Date: Wed, 12 Oct 2022 04:20:35 -0400 Subject: [PATCH] ttfb gui (#364) --- tapqir/gui.py | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/tapqir/gui.py b/tapqir/gui.py index 1321619..c8cb96e 100644 --- a/tapqir/gui.py +++ b/tapqir/gui.py @@ -1221,8 +1221,30 @@ def postUI(out): ), ) ttfb_layout.add_child( - "ttfb", widgets.Button(description="Time-to-first binding analysis") + "binary", + widgets.Checkbox( + value=False, + description="Plot a binary rastergram?", + style={"description_width": "initial"}, + ), + ) + ttfb_layout.add_child( + "num_samples", + widgets.IntText( + value=2000, + description="Number of posterior samples", + style={"description_width": "initial"}, + ), + ) + ttfb_layout.add_child( + "num_iter", + widgets.IntText( + value=15000, + description="Number of iterations", + style={"description_width": "initial"}, + ), ) + ttfb_layout.add_child("ttfb", widgets.Button(description="Analyze")) ttfb_layout["ttfb"].on_click(partial(ttfbCmd, layout=ttfb_layout, out=out)) # Dwell time analysis dt_layout = inputBox() @@ -1245,7 +1267,7 @@ def postUI(out): style={"description_width": "initial"}, ), ) - dt_layout.add_child("dwelltime", widgets.Button(description="Dwell-time analysis")) + dt_layout.add_child("dwelltime", widgets.Button(description="Analyze")) dt_layout["dwelltime"].on_click(partial(dtCmd, layout=dt_layout, out=out)) # Layout layout["post"].children = (ttfb_layout, dt_layout)