Open joeryjoery opened 7 months ago
fyi, I found 1 workaround to wrap any call to jaxopt
in a context-manager that disables print-statements altogether.
I just found out that the github version fixed this.
But the version on PyPI does not have the fix for this yet...
When running a solver like
BFGS
or similar, the code runs fine without warnings if I call it directly. But, if I call it inside avmap
then I get spammed by warnings that are not too problematic for my use-case.I also cannot filter the warnings directly, since the warnings do not print to stderr but to stdout... (at least I think so). I wasn't able to filter the warnings with:
This is super annoying when logging other information to stdout in my tests, how can I get rid of this?