Example #1
0
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'] == []
Example #2
0
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'] == []
Example #3
0
    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, ])
Example #4
0
    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,
            ])