Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
        self.obj = DetectorSpectrometerWDS(4096, calibration, COLLECTION_MODE_PARALLEL,
                                           'TAP', 8.742, 140.0, pha)
        self.obj.window.append_layer('Al', 1.0)
 
        source = u'<Detector Class="Spectrometer/WDS"><ChannelCount DataType="uint32">4096</ChannelCount><Calibration Class="Constant"><Quantity>Energy</Quantity><Unit>eV</Unit><Value DataType="float">-237.098251</Value></Calibration><DispersionElement>TAP</DispersionElement><Crystal-2d Unit="\u00c5" DataType="float">8.742</Crystal-2d><RowlandCircleDiameter Unit="mm" DataType="float">140.</RowlandCircleDiameter><PulseHeightAnalyser><Bias Unit="V" DataType="float">1700.</Bias><Gain DataType="float">16.</Gain><BaseLevel Unit="V" DataType="float">0.7</BaseLevel><Window Unit="V" DataType="float">9.3</Window><Mode>Differential</Mode></PulseHeightAnalyser><Window><Layer Material="Al" Unit="um" DataType="float">1.</Layer></Window></Detector>'