예제 #1
0
파일: chunked.py 프로젝트: pelson/blaze
 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))
예제 #2
0
파일: chunked.py 프로젝트: garfee/blaze
 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))
예제 #3
0
파일: chunked.py 프로젝트: garfee/blaze
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))
예제 #4
0
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))