Skip to content

Commit

Permalink
fix the lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rohangpta committed Aug 22, 2023
1 parent d4a0dd0 commit 32e5504
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions backend/review/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,16 +476,12 @@ def avg_and_recent_demand_plots(section_map, status_updates_map, bin_size=0.01):
if param_shape is None or param_loc is None or param_scale is None:
rel_demand = csrdv_frac_zero
else:
rel_demand = (
csrdv_frac_zero
+ stats.lognorm.cdf(
raw_demand,
param_shape,
param_loc,
param_scale,
)
* (1 - csrdv_frac_zero)
)
rel_demand = csrdv_frac_zero + stats.lognorm.cdf(
raw_demand,
param_shape,
param_loc,
param_scale,
) * (1 - csrdv_frac_zero)
if change["percent_through"] > bin_start_pct + bin_size:
if num_in_bin > 0:
bin_avg = total_value_in_bin / num_in_bin
Expand Down

0 comments on commit 32e5504

Please sign in to comment.