Private
Public Access
1
0

removing unnecessary middleware

This commit is contained in:
2024-05-28 15:19:20 +02:00
parent 0c06463cef
commit 863d90c24b
3 changed files with 4 additions and 3 deletions

View File

@@ -432,6 +432,7 @@ def resample(id, r, parent, overwrite='copy'):
def calculate_goldmedalstandard(rower, workout, recurrance=True):
cpfile = 'media/cpdata_{id}.parquet.gz'.format(id=workout.id)
try:
df = pl.read_parquet(cpfile)
except:
@@ -445,7 +446,8 @@ def calculate_goldmedalstandard(rower, workout, recurrance=True):
if df.is_empty():
return 0, 0
else:
return 0,0
return 0,0
if df.is_empty() and recurrance: # pragma: no cover
df, delta, cpvalues = setcp(workout, recurrance=False, background=True)
@@ -562,7 +564,6 @@ def setcp(workout, background=False, recurrance=True):
return pl.DataFrame({'delta': [], 'cp': []}), pl.Series(dtype=pl.Float64), pl.Series(dtype=pl.Float64)
csvfile = os.path.abspath(csvfile)
with grpc.insecure_channel(
target='localhost:50052',
options=[('grpc.lb_policy_name', 'pick_first'),

Binary file not shown.