Skip to content

Commit

Permalink
owsurvivalnomogram - Making black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Mar 19, 2024
1 parent cfff335 commit 6a03934
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions orangecontrib/survival_analysis/widgets/owsurvivalnomogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,20 +1081,22 @@ def create_nomogram_header_and_body(
)

feature_items = [
DiscreteFeatureItem(
name_item, attr, point, scale_x, name_offset, -scale_x * min_p
)
if attr.is_discrete
else cont_feature_item_class(
name_item,
attr,
self.data_extremes[i],
self.get_ruler_values(
point.min(), point.max(), scale_x * point.ptp(), False
),
scale_x,
name_offset,
-scale_x * min_p,
(
DiscreteFeatureItem(
name_item, attr, point, scale_x, name_offset, -scale_x * min_p
)
if attr.is_discrete
else cont_feature_item_class(
name_item,
attr,
self.data_extremes[i],
self.get_ruler_values(
point.min(), point.max(), scale_x * point.ptp(), False
),
scale_x,
name_offset,
-scale_x * min_p,
)
)
for i, attr, name_item, point in zip(
attr_inds, attributes, name_items, points
Expand Down

0 comments on commit 6a03934

Please sign in to comment.