FDK printing regardless of verbose kwarg
gfardell opened this issue · 2 comments
gfardell commented
Algorithm prints Tigre geometry and shape as default. I'm guessing this was left in from some debugging, but should probably be behind the a verbosity check.
TIGRE/Python/tigre/algorithms/single_pass_algorithms.py
Lines 159 to 160 in 3abdda4
casperdcl commented
proper solution: TIGRE should use logging.getLogger(__name__).{info,warning,debug}
instead of print
.
temporary end-user work-around for now:
with contextlib.redirect_stdout(io.StringIO()):
tigre.algorithms.fdk(...)
AnderBiguri commented
Thanks @gfardell and @casperdcl ! indeed some leftover code, will fix "soon". Ugh, many if these silly things all the time, I need some software engineering people working on TIGRE hehe