Open sebulino opened 2 years ago
While I think this is very much needed I was more thinking of using https://docs.python.org/3/howto/logging.html#logging-basic-tutorial. sorry should have linked this in #17
The idea is to record the current statistics for payment rounds as well as the final one as logging.info
, and any split between round-based statistics and final statistic would then be grepped at one's own discretion afterwards.
currently statistical summaries are printed in
pickhardt_pay
in each round of payment attempts and in the end. I added two flags topickhardt_pay
method as optional arguments:summary
(default:False
) for the final statistics.round_verbosity
(default:False
) for the statistics on the payment attempts in each loop. Statistics for each loop have their own method,_evaluate_attempts
, where I added the optional argument as well (default:False
)._evaluate_attempts
will receive the optional argument frompickhardt_pay
. My initial thought was to make the whole call of_evaluate_attempts
dependent on the verbosity choice in thepickhardt_pay
call. However, this would not work, as thepickhardt_pay
call needs to receive the return values from_evaluate_attempts
for its final summary.All statistics are printed to console.