Skip to content

Commit

Permalink
Merge pull request #12 from biolab/kaplan-meier/report
Browse files Browse the repository at this point in the history
[ENH] owkaplanmeier: enable widget report, add description
  • Loading branch information
JakaKokosar authored Mar 12, 2021
2 parents e8a6ce7 + 3bb09af commit dbe833b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions orangecontrib/survival_analysis/widgets/owkaplanmeier.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ def reset_button_clicked(self):

class OWKaplanMeier(OWWidget):
name = 'Kaplan-Meier Plot'
# TODO
description = ''
description = 'Plot the Kaplan-Meier estimate.'
icon = 'icons/owkaplanmeier.svg'
priority = 0

Expand All @@ -368,6 +367,7 @@ class OWKaplanMeier(OWWidget):
group_var: Optional[DiscreteVariable] = ContextSetting(None)

graph = SettingProvider(KaplanMeierPlot)
graph_name = 'graph.plotItem'

auto_commit: bool = Setting(False, schema_only=True)

Expand Down Expand Up @@ -550,6 +550,11 @@ def commit(self):

self.Outputs.selected_data.send(data[selection, :])

def send_report(self):
if self.data is None:
return
self.report_plot()

def sizeHint(self):
return QSize(1280, 620)

Expand Down

0 comments on commit dbe833b

Please sign in to comment.