Skip to content

Commit

Permalink
fix colab progressbar in post analysis (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy authored Nov 13, 2022
1 parent 95b5717 commit 8334528
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docs/source/tutorials/part_ii_colab.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Part II: Tapqir analysis (Google Colab)
=======================================

In this tutorial we will use a Jupyter notebook to run Tapqir in Colab. The notebooks contains explanatory text, Python commands that you can run by clicking on them, and will display the Tapqir user interface. The notebook is set up to analyze the Data set A in `Ordabayev et al., 2022`_.
The data are taken from `Rosen et al., 2020`_ and have already been preprocesssed using imscroll (`Friedman et al., 2015`_). The notebook also explains how to edit the commands to analyze your own datasseet instead.
In this tutorial we will use a Jupyter notebook to run Tapqir in Colab. The notebooks contains explanatory
text, Python commands that you can run by clicking on them, and will display the Tapqir user interface.
The notebook is set up to analyze the Data set A in `Ordabayev et al., 2022`_. The data are taken from
`Rosen et al., 2020`_ and have already been preprocesssed using imscroll (`Friedman et al., 2015`_).
The notebook also explains how to edit the commands to analyze your own data set instead.

To start the example notebook running in Google Colab click `here`_.

Expand Down
10 changes: 8 additions & 2 deletions tapqir/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,15 +1312,21 @@ def postUI(out):
def ttfbCmd(b, layout, out):
with out:
logger.info("Time-to-first binding analysis ...")
ttfb(**layout.kwargs)
ttfb(
**layout.kwargs,
progress_bar=tqdm_notebook,
)
logger.info("Time-to-first binding analysis: Done")
out.clear_output(wait=True)


def dtCmd(b, layout, out):
with out:
logger.info("Dwell-time analysis ...")
dwelltime(**layout.kwargs)
dwelltime(
**layout.kwargs,
progress_bar=tqdm_notebook,
)
logger.info("Dwell-time analysis: Done")
out.clear_output(wait=True)

Expand Down

0 comments on commit 8334528

Please sign in to comment.