Skip to content

Commit dbe68e8

Browse files
authored
Merge pull request #2744 from data-for-change/2743-modify-head-on-collisions-widget
Update is_included in head on collisions
2 parents 4018f0e + b513183 commit dbe68e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anyway/widgets/road_segment_widgets/head_on_collisions_comparison_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def is_included(self) -> bool:
117117
else:
118118
raise ValueError
119119
all_total = all_h2h + all_others # pylint: disable=E0606
120-
return segment_h2h > 1 and (segment_h2h / segment_total) > all_h2h / all_total
120+
return segment_h2h > 1 and (segment_h2h / segment_total) > 2 * all_h2h / all_total
121121

122122

123123
# adding calls to _() for pybabel extraction

0 commit comments

Comments
 (0)