Commit 9014afff authored by Eric Coissac's avatar Eric Coissac

Fixes #7 by checking the signal stack in the progress bar function. The

idea to check the signal at that place is that most of the step
involving long computation time call regularly this function to update
the progress bar
parent 470d8707
# cython: language_level=3
from cpython.exc cimport PyErr_CheckSignals
cpdef object progressBar(object pos,
off_t maxi,
......@@ -103,6 +105,9 @@ cpdef object progressBar(object pos,
spaces[50 - fraction]=b' '
# Added to check if signal (Ctrl-C) are send to the program
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment