diff --git a/README.md b/README.md index 957db98db7b95df9a2af44801f807f3fcd4c419b..bbe2d2368f326d4771eddba2a5f0b4cdcc36fc98 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,12 @@ $ git clone git@gitlab.aei.uni-hannover.de:GregAshton/PyFstat.git * [emcee](http://dan.iel.fm/emcee/current/) * [corner](https://pypi.python.org/pypi/corner/) * [dill](https://pypi.python.org/pypi/dill) + +*Optional* * [tqdm](https://pypi.python.org/pypi/tqdm)(optional), if installed, this provides a useful progress bar and estimate of the remaining run-time. +* [bashplotlib](https://github.com/glamp/bashplotlib), if installed, presents + a histogram of the loaded SFT data For an introduction to installing modules see [here](https://docs.python.org/3.5/installing/index.html). If you are using diff --git a/pyfstat/core.py b/pyfstat/core.py index a8c713c402a35335051a893927627bec7b6ea615..e4f3a1a7c44deba66f92b14b9cff4f7f955593c5 100755 --- a/pyfstat/core.py +++ b/pyfstat/core.py @@ -249,7 +249,7 @@ class ComputeFstat(object): from bashplotlib.histogram import plot_hist print('Data timestamps histogram:') plot_hist(SFT_timestamps, height=5, bincount=50) - except IOError: + except ImportError: pass if len(detector_names) == 0: raise ValueError('No data loaded.') diff --git a/requirements.txt b/requirements.txt index e4ff43e8b353b850ff42a860100259ab20c1b75f..c34c50800322d36c45aa10ac0d5faa24e8dec9c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,6 @@ emcee corner dill tqdm +bashplotlib