From: Shane Jaroch Date: Mon, 11 Dec 2023 21:38:53 +0000 (-0500) Subject: add average 1RM to printout X-Git-Tag: v0.2.8.dev0~62 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=409727a028706109ad63034d6771d3835bb35d76;p=nutratech%2Fcli.git add average 1RM to printout --- diff --git a/ntclient/argparser/funcs.py b/ntclient/argparser/funcs.py index aa177de..80291c4 100644 --- a/ntclient/argparser/funcs.py +++ b/ntclient/argparser/funcs.py @@ -133,10 +133,18 @@ def calc_1rm(args: argparse.Namespace) -> tuple: row.append(int(_values[_rep])) _all.append(row) + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Print results + # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print() print("Results for: epley, brzycki, and dos_remedios") print() + + # Print the n=1 average for all three calculations + _avg_1rm = round(sum(_all[0][1:]) / len(_all[0][1:]), 1) + print(f"1RM: {_avg_1rm}") + print() + _table = tabulate(_all, headers=["n", "epl", "brz", "rmds"]) print(_table)