Skip to content

Commit

Permalink
Merge pull request #77 from PrimozGodec/fix-report
Browse files Browse the repository at this point in the history
[FIX] Fix import for report
  • Loading branch information
janezd committed Jul 1, 2019
2 parents 66e77d1 + 6c39679 commit cf03c92
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
6 changes: 5 additions & 1 deletion orangecontrib/educational/widgets/owgradientdescent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import operator

from Orange.canvas import report
from os import path
import time

Expand All @@ -21,6 +20,11 @@
from Orange.preprocess.preprocess import Normalize
from scipy.interpolate import splprep, splev

try:
from orangewidget.report import report
except ImportError:
from Orange.canvas import report

from orangecontrib.educational.widgets.utils.color_transform import (
rgb_to_hex, hex_to_rgb)
from orangecontrib.educational.widgets.utils.linear_regression import \
Expand Down
8 changes: 6 additions & 2 deletions orangecontrib/educational/widgets/owkmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from Orange.widgets.widget import OWWidget, Msg, Input, Output
from Orange.data import DiscreteVariable, ContinuousVariable, Table, Domain
from Orange.widgets import gui, settings, widget
from Orange.canvas import report

try:
from orangewidget.report import report
except ImportError:
from Orange.canvas import report

from orangecontrib.educational.widgets.utils.kmeans import Kmeans
from orangecontrib.educational.widgets.utils.color_transform import \
Expand Down Expand Up @@ -213,7 +217,7 @@ def __init__(self):
self.step_box, self, "Step Back", callback=self.step_back)

self.run_box = gui.widgetBox(self.controlArea, "Run")

self.auto_play_speed_spinner = gui.hSlider(
self.run_box, self, 'auto_play_speed', label='Speed:',
minValue=0, maxValue=1.91, step=0.1, intOnly=False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
from Orange.classification import (LogisticRegressionLearner, Learner,
RandomForestLearner, TreeLearner)
from Orange.widgets.widget import Msg, OWWidget, Input, Output
from Orange.canvas import report

try:
from orangewidget.report import report
except ImportError:
from Orange.canvas import report

from orangecontrib.educational.widgets.utils.polynomialtransform \
import PolynomialTransform
Expand Down
6 changes: 5 additions & 1 deletion orangecontrib/educational/widgets/owpolynomialregression.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
from Orange.widgets.utils.owlearnerwidget import OWBaseLearner
from Orange.widgets.utils.sql import check_sql_input
from Orange.widgets.widget import OWWidget, Msg, Input, Output
from Orange.canvas import report

try:
from orangewidget.report import report
except ImportError:
from Orange.canvas import report


class OWUnivariateRegression(OWBaseLearner):
Expand Down

0 comments on commit cf03c92

Please sign in to comment.