def test_dataset_ndelement_init_hm(self): "Tests support for homogeneous NdElement (backwards compatibility)" exception = "None of the available storage backends "\ "were able to support the supplied data format." with self.assertRaisesRegexp(Exception, exception): Dataset(NdElement(zip(self.xs, self.xs_2), kdims=['x'], vdims=['x2']))
def test_dataset_ndelement_init_hm(self): "Tests support for homogeneous NdElement (backwards compatibility)" dataset = Dataset(NdElement(zip(self.xs, self.xs_2), kdims=['x'], vdims=['x2'])) self.assertTrue(isinstance(dataset.data, self.data_instance_type))
def test_columns_ndelement_init_ht(self): "Tests support for heterogeneous NdElement (backwards compatibility)" columns = Columns( NdElement(zip(self.xs, self.ys), kdims=['x'], vdims=['y'])) self.assertTrue(isinstance(columns.data, self.data_instance_type))