Ejemplo n.º 1
0
class RawSeriesDataSetInstance(object):
    def setUp(self):
        super(RawSeriesDataSetInstance, self).setUp()
        self.ds = DataSet(outcomeLabels=['0', '1'])
        self.ds.add_raw_series_data(('Gx',),
                                    ['0', '0', '1', '0', '1', '0', '1', '1', '1', '0'],
                                    [0.0, 0.2, 0.5, 0.6, 0.7, 0.9, 1.1, 1.3, 1.35, 1.5], None)
        self.ds[('Gy', 'Gy')] = (['0', '1'], [0.0, 1.0])  # add via spam-labels, times
Ejemplo n.º 2
0
 def test_initialize_from_raw_series_data(self):
     ds = DataSet(outcomeLabelIndices=self.olInds)
     ds.add_raw_series_data(('Gy',),  # gate sequence
                            ['0', '1'],  # spam labels
                            [0.0, 1.0],  # time stamps
                            [3, 7])  # repeats