Ejemplo n.º 1
0
 def makeGeom(self, geom_data):
     """ this is for Geoms or GeomNodes """
     node = GeomNode('')  # use attach new node...
     if self.runlocal:
         out = geom_data
     else:
         out = node.decodeFromBamStream(geom_data)
     return out
Ejemplo n.º 2
0
 def runner():
     #print('running')
     output = {} #we can probably just merge the dicts after the fact?
     idx = []
     for i in range(ncores):
         bit = pipes[i][0].recv()
         output[i]=GeomNode.decodeFromBamStream(bit) #it will match since pipes are named, also recv blocks till close
         idx.append( pipes[i][0].recv() )
     out = []
     for i in range(ncores):
         out.append(output[i]) #FIXME risk of missing indicies due to integer //
     #print('done running')
     return zip(out, idx) #FIXME stuipd
Ejemplo n.º 3
0
 def runner():
     #print('running')
     output = {}  #we can probably just merge the dicts after the fact?
     idx = []
     for i in range(ncores):
         bit = pipes[i][0].recv()
         output[i] = GeomNode.decodeFromBamStream(
             bit
         )  #it will match since pipes are named, also recv blocks till close
         idx.append(pipes[i][0].recv())
     out = []
     for i in range(ncores):
         out.append(output[i]
                    )  #FIXME risk of missing indicies due to integer //
     #print('done running')
     return zip(out, idx)  #FIXME stuipd