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
 
        buffer = np.ravel(buffer)
 
        datum = ImageRaster2DHyperimage(x, y, u, v, dtype, buffer,
                                        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, 6, 7, 8), dtype=np.uint8))
        self.obj = ImageRaster2DHyperimage(5, 6, 7, 8, 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 = ImageRaster2DHyperimage(5, 5, 3, 3)
        self.datum.conditions['Test'] = _Condition()