problem metrics

48 views
Skip to first unread message

Marco1967

unread,
Nov 11, 2019, 9:19:03 AM11/11/19
to golden-cheetah-users
Good evening to all, I have a problem, I downloaded PYTHON 3.6 with version V3.5 practically almost all the metrics I can't open them, it always gives me errors. I enclose file examples of errors. thank you all for your help.
potenza7cadenza .png
Avg Power Lap V3 (Py) .png
Avg HR Lap V3 (Py) .png

RB

unread,
Nov 11, 2019, 3:00:31 PM11/11/19
to golden-cheetah-users
Hi Mark,

Did you installed all extra libraries as described on:

Does the following smal example works?
import pathlib

import numpy as np


import plotly

from plotly.graph_objs import Scatter, Layout


temp_file
= tempfile.NamedTemporaryFile(mode="w+t", prefix="GC_", suffix=".html", delete=False)


## Retrieve power and cadence
xx
= np.asarray(GC.series(GC.SERIES_WATTS))

yy = np.asarray(GC.series(GC.SERIES_CAD))




## Prepare Plot

plotly.offline.plot({

   "data": [Scatter(x=xx, y=yy, mode = 'markers')],

   "layout": Layout(title="Power / Cadence")

}, auto_open = False, filename=temp_file.name)



## Load Plot
GC
.webpage(pathlib.Path(temp_file.name).as_uri())



Reply all
Reply to author
Forward
0 new messages