Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/datum/imageraster.py   pyHMSA(Download)
# Local modules.
from pyhmsa.fileformat.xmlhandler.datum.datum import _DatumXMLHandler
from pyhmsa.spec.datum.imageraster import \
    ImageRaster2D, ImageRaster2DSpectral, ImageRaster2DHyperimage
 
        conditions = self._parse_include_conditions(element)
 
        return ImageRaster2D(x, y, dtype, buffer, order='F',
                             conditions=conditions)
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/datum/test_imageraster.py   pyHMSA(Download)
    (ImageRaster2DXMLHandler, ImageRaster2DSpectralXMLHandler,
     ImageRaster2DHyperimageXMLHandler)
from pyhmsa.spec.datum.imageraster import \
    ImageRaster2D, ImageRaster2DSpectral, ImageRaster2DHyperimage
 
 
        buffer = sum(np.indices((5, 5), dtype=np.uint8))
        self.obj = ImageRaster2D(5, 5, np.uint8, buffer)
 
    def testparse(self):

src/p/y/pyHMSA-0.1/pyhmsa/spec/datum/test_imageraster.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.datum.imageraster import \
    ImageRaster2D, ImageRaster2DSpectral, ImageRaster2DHyperimage
from pyhmsa.spec.condition.condition import _Condition
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.datum = ImageRaster2D(5, 5)
        self.datum.conditions['Test'] = _Condition()