Ejemplo n.º 1
0
 def to_blaze(self):
     from blaze.server.client import Client
     from blaze.server import from_tree
     from blaze import Data
     # hacky - blaze urls have `compute.json` in it, but we need to strip it off
     # to feed it into the blaze client lib
     c = Client(self.data_url.rsplit('compute.json', 1)[0])
     d = Data(c)
     return from_tree(self.expr, {':leaf': d})
Ejemplo n.º 2
0
 def to_blaze(self):
     from blaze.server.client import Client
     from blaze.server import from_tree
     from blaze import Data
     # hacky - blaze urls have `compute.json` in it, but we need to strip it off
     # to feed it into the blaze client lib
     c = Client(self.data_url.rsplit('compute.json', 1)[0])
     d = Data(c)
     return from_tree(self.expr, {':leaf' : d})