Progress bar fails with ZeroDivisionError using a small number of observations #35
Labels
bug
Something isn't working
high priority
This issue is a high priority relative to other open issues
The below line contained within
PyNomaly/loop.py
fails with a ZeroDivisionError when the total number of observations is less than the terminal or cell width where the code was executed.PyNomaly/PyNomaly/loop.py
Line 36 in 744fa57
The cause is a block_size of 0, which is not allowable with the current implementation.
This can be resolved by changing the code to the following:
Which will ensure the block_size remains greater than 0 even when the number of observations is less than the width of the terminal / cell window.
The text was updated successfully, but these errors were encountered: