Did I find the right examples for you? yes no

All Samples(22)  |  Call(16)  |  Derive(0)  |  Import(6)

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 Analysis0D(value, dtype, conditions=conditions)
 
    def can_convert(self, obj):

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 Analysis0D(self[x, y], self.dtype, conditions=self.conditions)
 
class ImageRaster2DSpectral(_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 Analysis0D(self[analysis_index, 0], self.dtype,
                          conditions=self.conditions)
 
class AnalysisList1D(_AnalysisList):

src/p/y/pyHMSA-0.1/pyhmsa/test_datafile.py   pyHMSA(Download)
# Local modules.
from pyhmsa.datafile import DataFile
from pyhmsa.spec.datum.analysis import Analysis0D
from pyhmsa.spec.condition.elementalid import ElementalID
 
    def testadd_datum_condition(self):
        datum = Analysis0D(1.0)
        datum.conditions['cond'] = ElementalID(13)
        self.datafile.data['datum'] = datum
 
        self.assertEqual(1, len(self.datafile.data['datum'].conditions))
        self.assertEqual(1, len(self.datafile.conditions))
 
    def testadd_datum_condition2(self):
        datum = Analysis0D(1.0)
    def testadd_datum_condition3(self):
        datum = Analysis0D(1.0)
        self.datafile.data['datum'] = datum
 
        self.datafile.conditions['cond'] = ElementalID(13)
    def testmodify_datum_condition(self):
        datum = Analysis0D(1.0, conditions={'cond': ElementalID(13)})
        self.datafile.data['datum'] = datum
 
        datum.conditions['cond'] = ElementalID(14)

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.
        self.xml_filepath = os.path.join(testdata, 'analysis0d.xml')
 
        self.obj = Analysis0D(123, np.int64)
 
    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 = Analysis0D(4.0)
        self.datum.conditions['Test'] = _Condition()