CERN/TIGRE

FDK printing regardless of verbose kwarg

gfardell opened this issue · 2 comments

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.

print(geo)
print(proj.shape)

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(...)

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