Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_detector.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.detector import \
    (PHA_MODE_DIFFERENTIAL, SIGNAL_TYPE_ELS, COLLECTION_MODE_PARALLEL,
     XEDS_TECHNOLOGY_SILI)
    def testsignal_type(self):
        self.det.signal_type = SIGNAL_TYPE_ELS
        self.assertEqual(SIGNAL_TYPE_ELS, self.det.signal_type)
 
        self.assertRaises(ValueError, self.det.set_signal_type, 'ABC')

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.detector import \
    (PHA_MODE_DIFFERENTIAL, SIGNAL_TYPE_ELS, COLLECTION_MODE_PARALLEL,
     XEDS_TECHNOLOGY_SILI)
 
        self.obj = DetectorCamera(512, 400, 200.0, 4.5, 80.0,
                                  SIGNAL_TYPE_ELS, 'Example Inc.', 'Example Model 123',
                                  '12345-abc-67890', 'counts', 45.0, 0.0, 50.0,
                                  20.0, 1.0, 3.4, -20.0)