Skip to content

Commit

Permalink
owkaplanmeier: enable widget report, add description
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Mar 10, 2021
1 parent 0e183ce commit 3f2b19a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions orangecontrib/survival_analysis/widgets/owkaplanmeier.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,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 @@ -360,6 +359,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 @@ -542,8 +542,10 @@ def commit(self):

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

def sizeHint(self):
return QSize(1280, 620)
def send_report(self):
if self.data is None:
return
self.report_plot()


if __name__ == "__main__":
Expand Down

0 comments on commit 3f2b19a

Please sign in to comment.