Skip to content

Commit

Permalink
simplified two variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Sep 12, 2024
1 parent 745479e commit 1fc6279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caimira/apps/calculator/report_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ def comparison_report(
else:
statistics = {}

static_occupancy = True if form.occupancy_format == "static" else False
compute_prob_exposure = True if (form.short_range_option == "short_range_yes" and form.exposure_option == "p_probabilistic_exposure" and static_occupancy) else False
static_occupancy = form.occupancy_format == "static"
compute_prob_exposure = form.short_range_option == "short_range_yes" and form.exposure_option == "p_probabilistic_exposure" and static_occupancy

with executor_factory() as executor:
results = executor.map(
Expand Down

0 comments on commit 1fc6279

Please sign in to comment.