solcore5 icon indicating copy to clipboard operation
solcore5 copied to clipboard

Control Verbosity

Open jbuencuerpo opened this issue 5 years ago • 2 comments

I didn't find it in the docs, it is possible to minimize the Verbosity? Solving one cell is 5-10 lines of outpud and also the PDD solver output appears in the terminal but not in the notebook for example.

jbuencuerpo avatar Mar 28 '19 18:03 jbuencuerpo

Controlling the verbosity hasn't been a priority, so I am afraid there are little options there, at the moment.

Ideally, we will like to implement a proper logging system and not just printing stuff. This way, you can control the degree of verbosity by selecting the logging level, from DEBUG (highest) to CRITICAL (lowest), and send things to a log file if needed.

Now, making this work with the PDD, which send things directly to the standard output might be trickier. It might be possible to use something like this combined with a python callback function from fortran.

dalonsoa avatar Mar 29 '19 14:03 dalonsoa

Ok, yes I was checking the logging lib. Maybe with the PDD it will be better on the compiling step add a debug option, so by default it doesn't print output, only on fails.

jbuencuerpo avatar Mar 29 '19 15:03 jbuencuerpo