Revision ea0bd463cd9d6b6180c8b602fe6629da27d9cf82 authored by Joost van Griethuysen on 30 March 2017, 10:05:44 UTC, committed by Joost van Griethuysen on 30 March 2017, 10:05:44 UTC
As @jcfr showed in #230, the progress reporting can be simplified, requiring the user only to specify one variable that holds a progress reporter.

Update PyRadiomics to this implementation and add examples for both use with `tqdm.tqdm` (which can be used directly) or `click.progressbar` (which requires a simple wrapper class). Examples are provided in both the helloRadiomics script and notebook.

Progress reporting in full-python mode in GLCM and GLSZM now uses a progress reporter that is instantiated with an interator (as opposed to a length) and uses this progress reporter in the loop to iterate over the gray levels. This is encapsulated in a `with` statement to ensure correct closure.
Finally, a dummy progress reporter is provided for the cases where no progressbar is needed (none specified or verbosity level > INFO). In those cases the `_dummyProgressReporter` (defined in `__init__.py`) is used, which accepts the arguments from PyRadiomics and iterates over the gray levels passed in the iterable, but does not report any progress back to the user.
1 parent d4f8837
History
File Mode Size
bin
data
docs
radiomics
tests
.circleci-matrix.yml -rw-r--r-- 919 bytes
.editorconfig -rw-r--r-- 440 bytes
.flake8 -rw-r--r-- 1.1 KB
.gitattributes -rw-r--r-- 35 bytes
.gitignore -rw-r--r-- 763 bytes
.travis.yml -rw-r--r-- 710 bytes
CONTRIBUTING.md -rw-r--r-- 3.6 KB
LICENSE.txt -rw-r--r-- 10.3 KB
MANIFEST.in -rw-r--r-- 449 bytes
README.md -rw-r--r-- 5.6 KB
appveyor.yml -rw-r--r-- 1.2 KB
circle.yml -rw-r--r-- 580 bytes
requirements-dev.txt -rw-r--r-- 27 bytes
requirements-setup.txt -rw-r--r-- 13 bytes
requirements.txt -rw-r--r-- 151 bytes
scikit-ci.yml -rw-r--r-- 1.7 KB
setup.cfg -rw-r--r-- 182 bytes
setup.py -rw-r--r-- 3.1 KB
versioneer.py -rw-r--r-- 67.0 KB

README.md

back to top