Skip to content

Commit dd12143

Browse files
committed
Fixed styling
1 parent d5996f1 commit dd12143

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

qiita_db/meta_util.py

-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ def update_resource_allocation_redis(active=True):
608608
line = ax.lines[0]
609609
new_ax.plot(line.get_xdata(), line.get_ydata(),
610610
linewidth=1, color='orange')
611-
612611
handles, labels = ax.get_legend_handles_labels()
613612
for handle, label, scatter_data in zip(handles,
614613
labels,

qiita_db/util.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
time_model1 = (lambda x, k, a, b: a + b + np.log(x) * k)
9595
time_model2 = (lambda x, k, a, b: a + b * x + np.log(x) * k)
9696
time_model3 = (lambda x, k, a, b: a + b * np.log(x)**2 + np.log(x) * k)
97-
time_model4 = (lambda x, k, a, b: a * np.log(x)**3 + b * np.log(x)**2
98-
+ np.log(x) * k)
97+
time_model4 = (lambda x, k, a, b: a * np.log(x)**3 + b * np.log(x)**2 +
98+
np.log(x) * k)
9999

100100
MODELS_TIME = [time_model1, time_model2, time_model3, time_model4]
101101

@@ -2717,7 +2717,6 @@ def _resource_allocation_success_failures(df, k, a, b, model, col_name, type_):
27172717
df[f'c{type_}'] = model(x_plot, k, a, b)
27182718
success_df = df[df[type_] <= df[f'c{type_}']]
27192719
failures_df = df[df[type_] > df[f'c{type_}']]
2720-
27212720
return (success_df, failures_df)
27222721

27232722

@@ -2846,8 +2845,8 @@ def update_resource_allocation_table(weeks=1, test=None):
28462845
def merge_rows(rows):
28472846
date_fmt = '%Y-%m-%dT%H:%M:%S'
28482847
wait_time = (
2849-
datetime.strptime(rows.iloc[0]['Start'], date_fmt)
2850-
- datetime.strptime(rows.iloc[0]['Submit'], date_fmt))
2848+
datetime.strptime(rows.iloc[0]['Start'], date_fmt) -
2849+
datetime.strptime(rows.iloc[0]['Submit'], date_fmt))
28512850
if rows.shape[0] >= 2:
28522851
tmp = rows.iloc[1].copy()
28532852
else:

0 commit comments

Comments
 (0)