Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

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 Analysis2D(u, v, dtype, buffer, order='F', 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 Analysis2D(self.u, self.v, self.dtype, self[x, y],
                          conditions=self.conditions)
 

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 Analysis2D(self.u, self.v, self.dtype, self[analysis_index],
                          conditions=self.conditions)
 

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.
        with open(os.path.join(testdata, 'diffraction_pattern.png'), 'rb') as fp:
            im = Image.open(fp)
            self.obj = Analysis2D(220, 220, np.uint8, np.array(im))
 
    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
 
        testdata = os.path.join(os.path.dirname(__file__), '..', '..', 'testdata')
        self.im = Image.open(os.path.join(testdata, 'diffraction_pattern.png'))
        self.datum = Analysis2D(220, 220, np.uint8, np.array(self.im))
        self.datum.conditions['Test'] = _Condition()