Did I find the right examples for you? yes no

All Samples(17)  |  Call(8)  |  Derive(0)  |  Import(9)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/datum/analysis.py   pyHMSA(Download)
# Local modules.
from pyhmsa.fileformat.xmlhandler.datum.datum import _DatumXMLHandler
from pyhmsa.spec.datum.analysis import Analysis0D, Analysis1D, Analysis2D
 
# Globals and constants variables.
        conditions = self._parse_include_conditions(element)
 
        return Analysis1D(channel, dtype, buffer, order='F', conditions=conditions)
 
    def can_convert(self, obj):

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
     Window)
from pyhmsa.spec.condition.calibration import CalibrationLinear
from pyhmsa.spec.datum.analysis import Analysis1D
 
from pyhmsa.util.parsedict import parsedict
            datafile.conditions.update(self._extract_detector(keywords))
 
            datum = Analysis1D(len(buffer), dtype=buffer.dtype,
                               buffer=np.ravel(buffer),
                               conditions=datafile.conditions)

src/p/y/pyHMSA-0.1/pyhmsa/spec/datum/imageraster.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.datum.datum import _Datum
from pyhmsa.spec.datum.analysis import Analysis0D, Analysis1D, Analysis2D
 
# Globals and constants variables.
    def toanalysis(self, x, y):
        return Analysis1D(self.channels, self.dtype, self[x, y],
                          conditions=self.conditions)
 
class ImageRaster2DHyperimage(_ImageRaster2D):

src/p/y/pyHMSA-0.1/pyhmsa/spec/datum/analysislist.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.datum.datum import _Datum
from pyhmsa.spec.datum.analysis import Analysis0D, Analysis1D, Analysis2D
 
# Globals and constants variables.
    def toanalysis(self, analysis_index):
        return Analysis1D(self.channels, self.dtype, self[analysis_index, :],
                          conditions=self.conditions)
 
class AnalysisList2D(_AnalysisList):

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/exporter/emsa.py   pyHMSA(Download)
from pyhmsa.fileformat.common.emsa import calculate_checksum
 
from pyhmsa.spec.datum.analysis import Analysis1D
from pyhmsa.spec.condition.detector import DetectorSpectrometer
from pyhmsa.spec.condition.probe import _Probe

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/exporter/test_emsa.py   pyHMSA(Download)
from pyhmsa.spec.condition.calibration import CalibrationLinear
from pyhmsa.spec.condition.probe import ProbeEM
from pyhmsa.spec.datum.analysis import Analysis1D
 
# Globals and constants variables.
        datafile.conditions['EDS'] = detector
 
        analysis = Analysis1D(1024, np.int32,
                              buffer=np.arange(1024, dtype=np.int32))
        datafile.data['EDS sum spectrum'] = analysis

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/test_datafile.py   pyHMSA(Download)
 
from pyhmsa.datafile import DataFile
from pyhmsa.spec.datum.analysis import Analysis1D
from pyhmsa.spec.condition.instrument import Instrument
from pyhmsa.spec.condition.probe import ProbeEM
        self.datafile.conditions['EDS'] = detector
 
        analysis = Analysis1D(4096, np.int32,
                              buffer=np.arange(4096, dtype=np.int32))
        self.datafile.data['EDS sum spectrum'] = analysis

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/datum/test_analysis.py   pyHMSA(Download)
from pyhmsa.fileformat.xmlhandler.datum.analysis import \
    Analysis0DXMLHandler, Analysis1DXMLHandler, Analysis2DXMLHandler
from pyhmsa.spec.datum.analysis import Analysis0D, Analysis1D, Analysis2D
 
# Globals and constants variables.
            fp.seek(8)
            buffer = np.fromfile(fp, np.int64)
        self.obj = Analysis1D(4096, np.int64, buffer)
 
    def testparse(self):

src/p/y/pyHMSA-0.1/pyhmsa/spec/datum/test_analysis.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.datum.analysis import Analysis0D, Analysis1D, Analysis2D
from pyhmsa.spec.condition.condition import _Condition
 
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.datum = Analysis1D(5)
        self.datum.conditions['Test'] = _Condition()