Skip to content

Commit

Permalink
thing 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sh13m committed May 18, 2024
1 parent 1874c5a commit d197dbf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
Binary file added __pycache__/cadence.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/combiner.cpython-311.pyc
Binary file not shown.
10 changes: 4 additions & 6 deletions cadence.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def __init__(self, client_id, client_secret, redirect_uri):
def getCadenceData(self):
# Step 2: Obtain the authorization code
params = {
'client_id': CLIENT_ID,
'redirect_uri': REDIRECT_URI,
'client_id': self.CLIENT_ID,
'redirect_uri': self.REDIRECT_URI,
'response_type': 'code',
'scope': 'activity:read_all'
}
Expand All @@ -39,8 +39,8 @@ def getCadenceData(self):

# Step 4: Exchange authorization code for access token
token_params = {
'client_id': CLIENT_ID,
'client_secret': CLIENT_SECRET,
'client_id': self.CLIENT_ID,
'client_secret': self.CLIENT_SECRET,
'code': auth_code,
'grant_type': 'authorization_code'
}
Expand Down Expand Up @@ -94,8 +94,6 @@ def getCadenceData(self):

activitiesStream = activitiesStream_response.json()
data_only.append(activitiesStream['cadence']['data'])
# pprint()
pprint(data_only)
return data_only

if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions combined.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[67.0, 67.0, 67.0, 67.66666666666667, 68.66666666666667, 70.66666666666667, 72.0, 73.33333333333333, 75.33333333333333, 76.66666666666667, 78.0, 78.0, 78.33333333333333, 78.33333333333333, 78.33333333333333, 78.66666666666667, 78.33333333333333, 79.0, 79.66666666666667, 80.0, 80.33333333333333, 81.0, 81.33333333333333, 81.33333333333333, 81.0, 79.33333333333333, 77.66666666666667, 75.66666666666667, 73.66666666666667, 72.0, 70.0, 69.33333333333333, 70.66666666666667, 72.66666666666667, 74.66666666666667, 77.0, 78.33333333333333, 80.66666666666667, 82.33333333333333, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 81.66666666666667, 81.66666666666667, 81.0, 80.33333333333333, 80.0, 79.33333333333333, 79.33333333333333, 78.66666666666667, 79.0, 79.33333333333333, 79.33333333333333, 80.0, 80.33333333333333, 80.33333333333333, 81.0, 81.0, 81.33333333333333, 81.66666666666667, 82.0, 82.33333333333333, 82.66666666666667, 83.0, 83.0, 83.0, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 82.0, 82.33333333333333, 82.33333333333333, 83.0, 82.66666666666667, 83.0, 83.0, 83.33333333333333, 83.33333333333333, 83.0, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.66666666666667, 82.66666666666667, 82.0, 81.66666666666667, 81.66666666666667, 81.33333333333333, 81.0, 81.0, 81.0, 80.66666666666667, 80.66666666666667, 80.66666666666667, 80.33333333333333, 80.33333333333333, 80.33333333333333, 81.0, 81.66666666666667, 82.0, 82.33333333333333, 83.0, 83.33333333333333, 82.33333333333333, 80.0, 78.33333333333333, 76.33333333333333, 74.33333333333333, 72.33333333333333, 70.33333333333333, 70.66666666666667, 71.0, 71.66666666666667, 60.333333333333336, 60.666666666666664, 60.666666666666664, 67.0, 71.33333333333333, 74.66666666666667, 78.33333333333333, 82.0, 85.66666666666667, 86.66666666666667, 86.0, 85.0, 84.33333333333333, 83.66666666666667, 83.0, 82.33333333333333, 82.0, 82.33333333333333, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 82.0, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.66666666666667, 82.66666666666667, 82.66666666666667, 83.0, 83.66666666666667, 83.66666666666667, 84.0, 84.0, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.0, 82.66666666666667, 82.66666666666667, 82.66666666666667, 83.0, 83.0, 83.0, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.0, 83.0, 83.0, 82.66666666666667, 83.0, 83.0, 83.0, 83.33333333333333, 83.33333333333333, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.0, 83.0, 82.66666666666667, 82.66666666666667, 82.33333333333333, 82.0, 82.0, 82.0, 82.66666666666667, 83.0, 83.0, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.33333333333333, 82.66666666666667, 82.33333333333333, 81.66666666666667, 81.33333333333333, 81.0, 80.66666666666667, 80.66666666666667, 81.33333333333333, 82.0, 82.0, 82.66666666666667, 83.0, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.33333333333333, 83.0, 83.0, 81.66666666666667, 79.33333333333333, 77.33333333333333, 75.66666666666667, 73.66666666666667, 72.0, 70.33333333333333, 70.33333333333333, 70.33333333333333, 70.66666666666667, 81.0, 82.0, 83.0, 83.33333333333333, 83.0, 83.0, 81.66666666666667, 78.66666666666667, 75.33333333333333, 72.33333333333333, 69.33333333333333, 66.33333333333333, 63.0, 61.666666666666664, 63.333333333333336, 65.0, 66.66666666666667, 68.0, 69.66666666666667, 71.0, 72.66666666666667, 73.66666666666667, 74.66666666666667, 76.0, 77.0, 78.33333333333333, 79.33333333333333, 80.33333333333333, 80.66666666666667, 81.0, 81.33333333333333, 81.66666666666667, 81.66666666666667, 82.0, 82.0, 82.0, 81.66666666666667, 81.66666666666667, 82.0, 82.33333333333333, 82.33333333333333, 82.66666666666667, 83.0, 83.66666666666667, 83.33333333333333, 83.66666666666667, 83.0, 83.33333333333333, 83.0, 82.66666666666667, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 82.33333333333333, 82.66666666666667, 81.33333333333333, 78.33333333333333, 75.33333333333333, 72.33333333333333, 69.0, 65.66666666666667, 62.333333333333336, 62.0, 80.33333333333333, 81.66666666666667, 83.0, 84.66666666666667, 87.0, 87.33333333333333, 86.66666666666667, 86.33333333333333, 85.66666666666667, 84.66666666666667, 84.0, 83.33333333333333, 82.66666666666667, 83.0, 83.0, 83.0, 83.0, 82.66666666666667, 83.0, 83.0, 83.33333333333333, 83.33333333333333, 83.66666666666667, 83.33333333333333, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.33333333333333, 83.0, 82.66666666666667, 83.0, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.33333333333333, 82.0, 82.0, 81.66666666666667, 81.66666666666667, 82.33333333333333, 82.66666666666667, 83.0, 83.33333333333333, 83.66666666666667, 82.33333333333333, 81.33333333333333, 79.66666666666667, 77.66666666666667, 76.33333333333333, 74.66666666666667, 72.33333333333333, 69.33333333333333, 67.0, 64.66666666666667, 62.333333333333336, 59.666666666666664, 57.666666666666664, 57.666666666666664, 60.333333333333336, 62.666666666666664, 65.33333333333333, 68.0, 70.0, 72.66666666666667, 74.66666666666667, 76.0, 77.66666666666667, 79.0, 80.66666666666667, 82.33333333333333, 83.66666666666667, 84.66666666666667, 84.33333333333333, 84.33333333333333, 84.33333333333333, 84.33333333333333, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.66666666666667, 83.33333333333333, 83.33333333333333, 83.0, 83.0, 83.0, 82.66666666666667, 83.0, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.33333333333333, 82.33333333333333, 82.66666666666667, 82.33333333333333, 82.66666666666667, 82.66666666666667, 82.33333333333333, 83.0, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.33333333333333, 83.66666666666667, 83.66666666666667, 83.0, 83.33333333333333, 83.0, 83.0, 83.0, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.66666666666667, 82.66666666666667, 83.0, 83.0, 83.0, 83.33333333333333, 83.66666666666667, 84.0, 84.0, 84.66666666666667, 84.33333333333333, 84.66666666666667, 84.66666666666667, 84.33333333333333, 84.33333333333333, 83.66666666666667, 83.33333333333333, 82.66666666666667, 82.0, 81.66666666666667, 81.66666666666667, 82.0, 82.33333333333333, 83.0, 83.33333333333333, 83.66666666666667, 84.0, 84.0, 84.0, 83.33333333333333, 83.0, 82.66666666666667, 82.0, 81.0, 79.33333333333333, 78.66666666666667, 77.66666666666667, 77.0, 76.0, 75.33333333333333, 75.33333333333333, 76.66666666666667, 77.33333333333333, 78.33333333333333, 79.33333333333333, 80.0, 81.0, 81.33333333333333, 81.66666666666667, 81.66666666666667, 81.66666666666667, 81.66666666666667, 81.66666666666667, 82.0, 81.66666666666667, 81.0, 80.66666666666667, 80.0, 79.33333333333333, 79.0, 78.66666666666667, 77.33333333333333, 75.33333333333333, 73.33333333333333, 71.33333333333333, 69.33333333333333, 67.0, 64.66666666666667, 63.333333333333336, 62.666666666666664, 62.333333333333336, 62.666666666666664, 62.333333333333336, 62.333333333333336, 62.333333333333336, 62.333333333333336, 63.0, 63.666666666666664, 63.333333333333336, 63.333333333333336, 63.333333333333336, 63.333333333333336, 62.666666666666664, 62.333333333333336, 61.333333333333336, 59.333333333333336, 58.0, 56.0, 54.0, 53.333333333333336, 54.333333333333336, 57.333333333333336, 60.0, 62.666666666666664, 53.333333333333336, 72.66666666666667, 75.66666666666667, 77.33333333333333, 79.0, 80.33333333333333, 81.66666666666667, 83.33333333333333, 84.0, 83.66666666666667, 83.33333333333333, 82.66666666666667, 82.0, 81.66666666666667, 81.33333333333333, 81.0, 81.0, 81.33333333333333, 81.33333333333333, 82.0, 82.0, 82.33333333333333, 82.33333333333333, 82.66666666666667, 83.0, 83.66666666666667, 84.0, 83.5, 84.0, 85.0, 84.5, 84.0, 83.5, 83.0, 82.5, 81.5, 81.0, 81.5, 81.5, 81.5, 81.5, 82.0, 82.0, 82.0, 82.5, 82.5, 83.5, 83.5, 84.0, 84.0, 84.5, 84.5, 84.5, 84.0, 84.0, 84.0, 83.5, 83.5, 83.5, 83.5, 84.0, 84.0, 84.5, 84.5, 85.0, 85.0, 84.0, 83.5, 83.0, 82.5, 82.5, 81.5, 82.0, 82.0, 82.0, 82.5, 82.5, 82.5, 82.5, 82.5, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.5, 83.5, 84.0, 84.0, 84.5, 84.5, 83.5, 82.0, 80.0, 78.5, 76.5, 75.0, 73.0, 72.0, 72.0, 72.0, 72.0, 72.0, 72.0, 72.0, 70.5, 67.0, 64.0, 60.5, 57.0, 54.5, 51.0, 51.5, 56.5, 61.5, 65.5, 70.5, 75.5, 80.5, 81.0, 78.5, 76.0, 73.5, 71.5, 69.0, 67.0, 66.5, 66.5, 67.0, 67.5, 67.5, 68.0, 67.5, 66.0, 63.5, 61.5, 59.0, 57.5, 55.0, 52.5, 52.5, 53.0, 53.0, 75.5, 75.5, 77.5, 78.0, 79.0, 80.5, 81.0, 81.5, 82.5, 83.0, 83.5, 84.0, 84.0, 83.5, 84.0, 84.0, 83.5, 84.0, 84.5, 85.0, 85.5, 85.0, 85.0, 85.0, 84.5, 84.5, 83.5, 83.5, 84.0, 84.0, 84.5, 84.5, 85.0, 86.0, 86.0, 85.5, 86.0, 85.5, 85.5, 85.5, 85.0, 84.5, 84.5, 84.5, 83.5, 83.5, 83.5, 83.5, 83.5, 83.5, 83.5, 83.5, 84.0, 84.0, 84.0, 84.0, 85.0, 85.5, 85.5, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.5, 84.0, 84.0, 83.5, 83.5, 83.5, 83.0, 83.0, 82.0, 80.0, 78.0, 76.0, 74.0, 72.0, 70.0, 68.5, 68.5, 68.5, 69.0, 69.0, 69.5, 70.0, 70.5, 70.5, 71.0, 71.0, 71.0, 71.0, 71.0, 70.0, 70.0, 69.5, 68.5, 68.0, 67.5, 67.5, 67.5, 68.0, 67.5, 68.0, 68.5, 69.0, 69.5, 70.0, 70.0, 70.0, 70.5, 70.5, 71.0, 71.0, 72.0, 74.0, 76.0, 77.5, 79.5, 81.5, 83.5, 84.0, 84.5, 84.0, 84.0, 84.0, 84.0, 83.5, 84.0, 84.0, 84.5, 85.0, 85.0, 84.5, 84.0, 84.0, 84.0, 83.5, 83.0, 83.5, 83.5, 84.0, 84.0, 84.5, 85.5, 85.5, 86.0, 87.0, 87.0, 87.5, 87.5, 86.5, 86.5, 85.5, 85.0, 84.0, 83.0, 83.5, 83.0, 83.5, 83.0, 83.0, 83.5, 82.0, 79.5, 76.5, 74.0, 71.0, 68.5, 65.5, 64.5, 64.5, 64.5, 65.0, 65.0, 65.0, 65.0, 65.5, 66.0, 66.5, 67.0, 67.5, 68.0, 69.0, 69.0, 69.5, 69.0, 69.5, 69.0, 69.0, 68.5, 68.5, 68.5, 68.5, 68.0, 68.0, 67.5, 66.5, 66.0, 65.5, 65.0, 77.0, 78.0, 80.0, 83.0, 85.0, 88.0, 90.0, 93.0, 93.0, 92.0, 91.0, 90.0, 88.0, 87.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 82.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 86.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 83.0, 84.0, 84.0, 85.0, 85.0, 86.0, 87.0, 87.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 85.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 83.0, 83.0, 84.0, 85.0, 85.0, 86.0, 87.0, 87.0, 88.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 87.0, 86.0, 85.0, 84.0, 83.0, 82.0, 82.0, 81.0, 80.0, 80.0, 80.0, 79.0, 79.0, 78.0, 79.0, 80.0, 81.0, 82.0, 84.0, 85.0, 86.0, 85.0, 83.0, 80.0, 78.0, 76.0, 73.0, 71.0, 70.0, 71.0, 72.0, 74.0, 75.0, 76.0, 77.0, 79.0, 80.0, 81.0, 82.0, 84.0, 85.0, 86.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 86.0, 83.0, 81.0, 78.0, 75.0, 73.0, 70.0, 70.0, 72.0, 74.0, 76.0, 78.0, 81.0, 83.0, 84.0, 84.0, 83.0, 83.0, 83.0, 83.0, 82.0, 83.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 85.0, 84.0, 84.0, 83.0, 82.0, 82.0, 81.0, 81.0, 82.0, 83.0, 84.0, 86.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 86.0, 84.0, 82.0, 80.0, 78.0, 76.0, 74.0, 73.0, 74.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 85.0, 84.0, 83.0, 83.0, 82.0, 82.0, 81.0, 80.0, 78.0, 77.0, 75.0, 74.0, 73.0, 73.0, 75.0, 77.0, 79.0, 82.0, 84.0, 86.0, 87.0, 87.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 86.0, 86.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 84.0, 84.0, 85.0, 86.0, 86.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 85.0, 84.0, 84.0, 83.0, 82.0, 82.0, 82.0, 82.0, 83.0, 84.0, 85.0, 86.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 87.0, 87.0, 87.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 84.0, 84.0, 85.0, 86.0, 86.0, 87.0, 88.0, 88.0, 88.0, 88.0, 87.0, 86.0, 86.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 85.0, 86.0, 86.0, 87.0, 88.0, 88.0, 88.0, 88.0, 87.0, 86.0, 86.0, 85.0, 84.0, 84.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 82.0, 82.0, 82.0, 83.0, 83.0, 84.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 82.0, 83.0, 84.0, 85.0, 86.0, 87.0, 88.0, 89.0, 89.0, 89.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 86.0, 86.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 85.0, 84.0, 83.0, 82.0, 81.0, 81.0, 80.0, 80.0, 79.0, 79.0, 79.0, 78.0, 78.0, 78.0, 79.0, 81.0, 82.0, 83.0, 84.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 81.0, 81.0, 82.0, 82.0, 83.0, 84.0, 84.0, 85.0, 85.0, 84.0, 84.0, 83.0, 83.0, 82.0, 82.0, 82.0, 82.0, 82.0, 82.0, 82.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 83.0, 82.0, 82.0, 82.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 83.0, 81.0, 80.0, 79.0, 78.0, 78.0, 79.0, 80.0, 81.0, 82.0, 83.0, 84.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 88.0, 88.0, 87.0, 86.0, 85.0, 85.0, 84.0, 83.0, 83.0, 83.0, 84.0, 84.0, 84.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 83.0, 81.0, 80.0, 79.0, 78.0, 78.0, 78.0, 78.0, 79.0, 79.0, 80.0, 80.0, 81.0, 82.0, 82.0, 83.0, 84.0, 84.0, 85.0, 84.0, 82.0, 80.0, 78.0, 76.0, 74.0, 72.0, 72.0, 75.0, 77.0, 80.0, 82.0, 85.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 87.0, 87.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 87.0, 87.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 87.0, 88.0, 88.0, 89.0, 89.0, 89.0, 87.0, 85.0, 83.0, 81.0, 80.0, 78.0, 78.0, 79.0, 81.0, 82.0, 84.0, 85.0, 87.0, 87.0, 86.0, 85.0, 84.0, 83.0, 82.0, 80.0, 80.0, 81.0, 81.0, 82.0, 83.0, 83.0, 84.0, 84.0, 84.0, 85.0, 85.0, 85.0, 85.0, 85.0, 86.0, 86.0, 87.0, 88.0, 88.0, 89.0, 89.0, 89.0, 89.0, 88.0, 88.0, 87.0, 86.0, 86.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 85.0, 85.0, 85.0, 86.0, 86.0, 86.0, 86.0, 86.0, 86.0, 85.0, 85.0, 85.0, 84.0, 84.0, 84.0, 84.0, 83.0, 83.0, 83.0, 82.0, 82.0, 83.0, 84.0, 84.0, 85.0, 85.0, 86.0, 86.0, 87.0, 87.0, 87.0, 88.0, 88.0, 88.0, 88.0, 88.0, 87.0, 86.0, 86.0, 85.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0, 84.0]
12 changes: 0 additions & 12 deletions combiner.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
from statistics import fmean

test_list = [
[1, 1, 4, 50, 300],
[10, 1, 4, 50, 1, 1, 1 , 1, 300],
[2, 3, 4, 300],
[10, 1, 4, 50, 40, 44, 300],
[9, 1, 2, 50, 31],
[10, 1, 4, 50, 32],
[2, 3, 4, 50, 33],
]

class Combiner:
def __init__(self, arrs: list[list[float]]):
Expand All @@ -22,6 +13,3 @@ def combine(self) -> list[float]:

new_list = list(map(fmean, new_list))
return new_list

cb = Combiner(arrs=test_list)
print(cb.combine())
13 changes: 13 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from combiner import Combiner
from cadence import StravaAPI

strava = StravaAPI(
client_id='126930',
client_secret='a8f24465f2e64522b1205955dfbd088c0a706188',
redirect_uri='http://localhost'
)
data = strava.getCadenceData()
cb = Combiner(arrs=data)

print(cb.combine())
print(len(cb.combine()))

0 comments on commit d197dbf

Please sign in to comment.