def test_mca_describe(): mca = EpicsMCA(devs[0], name='test') desc = mca.describe() d = desc[mca.name + '_spectrum'] assert d['dtype'] == 'number' assert d['shape'] == []
def test_describe(self): mca = EpicsMCA(devs[0]) desc = mca.describe() d = desc[mca.prefix + '_spectrum'] if not REAL_SCALER: self.assertEquals(d['dtype'], 'number') self.assertEquals(d['shape'], []) else: self.assertEquals(d['dtype'], 'array') self.assertEquals(d['shape'], [4096, ])
def test_describe(self): mca = EpicsMCA(devs[0]) desc = mca.describe() d = desc[mca.prefix + '_spectrum'] if not REAL_SCALER: self.assertEquals(d['dtype'], 'number') self.assertEquals(d['shape'], []) else: self.assertEquals(d['dtype'], 'array') self.assertEquals(d['shape'], [ 4096, ])