removing unnecessary middleware
This commit is contained in:
@@ -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'),
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user