コード例 #1
0
ファイル: test_owheatmap.py プロジェクト: PrimozGodec/orange3
 def test_data_column_nans(self):
     """
     Send data with one column with all values set to NaN.
     ValueError should not be thrown (Invalid number of variable columns)
     That column is now suppose to be removed in a table array and
     in a domain as well.
     GH-2057
     """
     table = datasets.data_one_column_nans()
     self.widget.controls.merge_kmeans.setChecked(True)
     self.send_signal(self.widget.Inputs.data, table)
コード例 #2
0
 def test_data_column_nans(self):
     """
     Send data with one column with all values set to NaN.
     ValueError should not be thrown (Invalid number of variable columns)
     That column is now suppose to be removed in a table array and
     in a domain as well.
     GH-2057
     """
     table = datasets.data_one_column_nans()
     self.widget.controls.merge_kmeans.setChecked(True)
     self.send_signal(self.widget.Inputs.data, table)
コード例 #3
0
 def test_data_column_nans(self):
     """
     ZeroDivisonError - Weights sum to zero, can't be normalized
     In case when all rows in a column are NaN then it throws that error.
     GH-2064
     """
     table = datasets.data_one_column_nans()
     saved = {"preprocessors": [("orange.preprocess.scale",
                                 {"center": Scale.CenteringType.Mean,
                                  "scale": Scale.ScalingType.Std})]}
     model = self.widget.load(saved)
     self.widget.set_model(model)
     self.send_signal("Data", table)
コード例 #4
0
ファイル: test_owpreprocess.py プロジェクト: benzei/orange3
 def test_data_column_nans(self):
     """
     ZeroDivisonError - Weights sum to zero, can't be normalized
     In case when all rows in a column are NaN then it throws that error.
     GH-2064
     """
     table = datasets.data_one_column_nans()
     saved = {"preprocessors": [("orange.preprocess.scale",
                                 {"center": Scale.CenteringType.Mean,
                                  "scale": Scale.ScalingType.Std})]}
     model = self.widget.load(saved)
     self.widget.set_model(model)
     self.send_signal(self.widget.Inputs.data, table)
コード例 #5
0
ファイル: test_owscatterplot.py プロジェクト: kernc/orange3
    def test_data_column_nans(self):
        """
        ValueError cannot convert float NaN to integer.
        In case when all column values are NaN then it throws that error.
        GH-2061
        """
        table = datasets.data_one_column_nans()
        self.send_signal(self.widget.Inputs.data, table)
        cb_attr_color = self.widget.controls.graph.attr_color
        simulate.combobox_activate_item(cb_attr_color, "b")
        simulate.combobox_activate_item(self.widget.cb_attr_x, "a")
        simulate.combobox_activate_item(self.widget.cb_attr_y, "a")

        self.widget.update_graph()
コード例 #6
0
ファイル: test_owscatterplot.py プロジェクト: astaric/orange3
    def test_data_column_nans(self):
        """
        ValueError cannot convert float NaN to integer.
        In case when all column values are NaN then it throws that error.
        GH-2061
        """
        table = datasets.data_one_column_nans()
        self.send_signal(self.widget.Inputs.data, table)
        cb_attr_color = self.widget.controls.graph.attr_color
        simulate.combobox_activate_item(cb_attr_color, "b")
        simulate.combobox_activate_item(self.widget.cb_attr_x, "a")
        simulate.combobox_activate_item(self.widget.cb_attr_y, "a")

        self.widget.update_graph()