Skip to content

Commit

Permalink
Fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Gossty committed Jan 7, 2025
1 parent d5996f1 commit dd12143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion qiita_db/meta_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ def update_resource_allocation_redis(active=True):
line = ax.lines[0]
new_ax.plot(line.get_xdata(), line.get_ydata(),
linewidth=1, color='orange')

handles, labels = ax.get_legend_handles_labels()
for handle, label, scatter_data in zip(handles,
labels,
Expand Down
9 changes: 4 additions & 5 deletions qiita_db/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
time_model1 = (lambda x, k, a, b: a + b + np.log(x) * k)
time_model2 = (lambda x, k, a, b: a + b * x + np.log(x) * k)
time_model3 = (lambda x, k, a, b: a + b * np.log(x)**2 + np.log(x) * k)
time_model4 = (lambda x, k, a, b: a * np.log(x)**3 + b * np.log(x)**2
+ np.log(x) * k)
time_model4 = (lambda x, k, a, b: a * np.log(x)**3 + b * np.log(x)**2 +
np.log(x) * k)

MODELS_TIME = [time_model1, time_model2, time_model3, time_model4]

Expand Down Expand Up @@ -2717,7 +2717,6 @@ def _resource_allocation_success_failures(df, k, a, b, model, col_name, type_):
df[f'c{type_}'] = model(x_plot, k, a, b)
success_df = df[df[type_] <= df[f'c{type_}']]
failures_df = df[df[type_] > df[f'c{type_}']]

return (success_df, failures_df)


Expand Down Expand Up @@ -2846,8 +2845,8 @@ def update_resource_allocation_table(weeks=1, test=None):
def merge_rows(rows):
date_fmt = '%Y-%m-%dT%H:%M:%S'
wait_time = (
datetime.strptime(rows.iloc[0]['Start'], date_fmt)
- datetime.strptime(rows.iloc[0]['Submit'], date_fmt))
datetime.strptime(rows.iloc[0]['Start'], date_fmt) -
datetime.strptime(rows.iloc[0]['Submit'], date_fmt))
if rows.shape[0] >= 2:
tmp = rows.iloc[1].copy()
else:
Expand Down

0 comments on commit dd12143

Please sign in to comment.