Skip to content

Commit dd94d35

Browse files
committed
final nits
1 parent 6e859eb commit dd94d35

File tree

1 file changed

+14
-14
lines changed
  • _delphi_utils_python/delphi_utils/flash_eval

1 file changed

+14
-14
lines changed

_delphi_utils_python/delphi_utils/flash_eval/eval_day.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ def process_params(lag, day, input_df, signal, params, logger, local=False):
315315
).resource('s3')
316316

317317
(wk_mean, wk_var, weekday_params,
318-
summary_stats, stream, rep_sched, \
318+
summary_stats, stream, rep_sched, \
319319
lin_coeff, EVD_max, EVD_min, last_7, \
320-
STATE_to_fips, fips_pop_table) = generate_files(params, lag, signal, local=local, s3=s3)
320+
STATE_to_fips, fips_pop_table) = generate_files(params, lag, signal, local=local, s3=s3)
321321

322322
input_df.columns = [str(STATE_to_fips[x]) if x in list(STATES)
323323
else x for x in input_df.columns]
@@ -349,10 +349,10 @@ def process_params(lag, day, input_df, signal, params, logger, local=False):
349349

350350
global_outlier_list = []
351351
for df in [weekday_correction, non_daily_df_test, non_ar_df]:
352-
global_outlier_list.append(outlier_detect(df.T.merge(summary_stats[df.columns].loc['median'
353-
, :], left_index=True, right_index=True
354-
).merge(summary_stats[df.columns].loc['var', :],
355-
left_index=True, right_index=True)))
352+
global_outlier_list.append(outlier_detect(df.T.merge(summary_stats[df.columns].loc[
353+
'median', :], left_index=True, right_index=True).merge(
354+
summary_stats[df.columns].loc['var', :],
355+
left_index=True, right_index=True)))
356356

357357
# Apply AR
358358

@@ -387,14 +387,14 @@ def process_params(lag, day, input_df, signal, params, logger, local=False):
387387
type_of_outlier = type_of_outlier.merge(stream_individual,
388388
left_index=True, right_index=True,
389389
how='outer').merge(stream_group,
390-
left_index=True, right_index=True,
391-
how='outer').merge(evd_ranking,
392-
left_index=True,
393-
right_index=True, how='outer'
394-
).merge(df_for_ts,
395-
left_index=True,
396-
right_index=True,
397-
how='outer').merge(
390+
left_index=True, right_index=True,
391+
how='outer').merge(evd_ranking,
392+
left_index=True,
393+
right_index=True, how='outer'
394+
).merge(df_for_ts,
395+
left_index=True,
396+
right_index=True,
397+
how='outer').merge(
398398
ts_streams,
399399
left_index=True, right_index=True, how='outer')
400400
type_of_outlier['flash'] = type_of_outlier['evd_ranking']

0 commit comments

Comments
 (0)