Beispiel #1
0
 def __init__(self, args):
     with HTTMock(local_mock):
         self.connection = MyriaConnection(
             hostname='localhost',
             port=12345,
             execution_url='http://localhost:12345')
     super(TestQuery, self).__init__(args)
Beispiel #2
0
 def __init__(self, args):
     with HTTMock(local_mock):
         self.connection = MyriaConnection(hostname='localhost', port=12345)
         MyriaRelation.DefaultConnection = self.connection
     super(TestRelation, self).__init__(args)
Beispiel #3
0
 def __init__(self, args):
     with HTTMock(create_mock()):
         self.connection = MyriaConnection(hostname='localhost', port=12345)
     super(TestFluent, self).__init__(args)
Beispiel #4
0
from myria import *
import numpy
import json
from myria.connection import MyriaConnection
from myria.relation import MyriaRelation
from myria.udf import MyriaPythonFunction
from raco.types import STRING_TYPE, BOOLEAN_TYPE, LONG_TYPE, BLOB_TYPE

connection = MyriaConnection(rest_url='http://localhost:8753',execution_url='http://localhost:8080')
outType= "BLOB_TYPE"

###queries
# data ingested in relation raw

q = MyriaQuery.submit("""
T1 = scan(raw);
processedCCDs = [from T1 emit T1.ccd, T1.visit, processCCD(T1.img) as calexp];

STORE(processedCCDs, calexps);

patchlist = [from T1
            where visit=0288935
            rekeywpatchid(T1.img) as patchid];
STORE(patchlist, patchlist);
""", connection=connection)
q.status


q = MyriaQuery.submit("""
uda createP(visit, patchid, img) {
   [EMPTY_BLOB as coadd];
Beispiel #5
0
 def __init__(self, args):
     with HTTMock(local_mock):
         self.connection = MyriaConnection(hostname='localhost', port=12345)
     super(TestQuery, self).__init__(args)