From 409727a028706109ad63034d6771d3835bb35d76 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Mon, 11 Dec 2023 16:38:53 -0500 Subject: [PATCH] add average 1RM to printout --- ntclient/argparser/funcs.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.52.0