Ejemplo n.º 1
0
 def empty(self, dshape):
     """ Create a CArraySource from a datashape specification,
     downcasts into Numpy dtype and shape tuples if possible
     otherwise raises an exception.
     """
     shape, dtype = from_numpy(dshape)
     return CArraySource(carray([], dtype))
Ejemplo n.º 2
0
 def empty(self, dshape):
     """ Create a CArraySource from a datashape specification,
     downcasts into Numpy dtype and shape tuples if possible
     otherwise raises an exception.
     """
     shape, dtype = from_numpy(dshape)
     return CArraySource(carray([], dtype))
Ejemplo n.º 3
0
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))
Ejemplo n.º 4
0
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))