

The reason that the p_max that the model is returning is different from the actual power max is because this is the fitted model parameter which represents the interception of the critical power model with the vertical axis (t=0). the "3 parameter non linear model" you are using in your second message). These efforts are then fitted to a critical power model (e.g.

The CP (and W' for that matter) are generally computed from a small number of maximal efforts. Your first error (first message) is indeed caused by the missing CP for the athlete. Great to hear that you're using this library. TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' Static_tau = tau_w_prime_balance(power, cp)įile "C:\Users\Ethan\PycharmProjects\fitness\venv\lib\site-packages\sweat\pdm\w_prime_balance.py", line 14, in tau_w_prime_balance Tau = get_tau_method(power, cp, tau_dynamic, tau_value)įile "C:\Users\Ethan\PycharmProjects\fitness\venv\lib\site-packages\sweat\pdm\w_prime_balance.py", line 25, in get_tau_method Return method(power, cp, w_prime, *args, **kwargs)įile "C:\Users\Ethan\PycharmProjects\fitness\venv\lib\site-packages\sweat\pdm\w_prime_balance.py", line 46, in w_prime_balance_waterworth _prime, algorithm, *args, **kwargs)įile "C:\Users\Ethan\PycharmProjects\fitness\venv\lib\site-packages\sweat\pdm\w_prime_balance.py", line 112, in w_prime_balance Pydev_imports.execfile(filename, global_vars, local_vars) # execute the scriptįile "C:\Program Files\JetBrains\P圜harm Community Edition 2019.2.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfileĮxec(compile(contents+"\n", file, 'exec'), glob, loc)įile "C:/Users/Ethan/PycharmProjects/fitness/index.py", line 254, in įile "C:\Users\Ethan\PycharmProjects\fitness\pages\pandasTesting.py", line 37, in testįile "C:\Users\Ethan\PycharmProjects\fitness\venv\lib\site-packages\sweat\io\models\dataframes.py", line 35, in compute_w_prime_balance File "C:\Program Files\JetBrains\P圜harm Community Edition 2019.2.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
