示例#1
0
    def __init__(self, dataSet, idDataSet):

        self.dataSet = dataSet
        self.idDataSet = idDataSet
        self.listFeatures = []#lista de las caracteristicas...

        #instancias a la base de datos...
        self.connect = ConnectDataBase.ConnectDataBase()
        self.handler = HandlerQuery.HandlerQuery()
示例#2
0
    def __init__(self):

        #hacemos las instancias de conexion y handler de la bd
        self.connect = ConnectDataBase.ConnectDataBase()
        self.handler = HandlerQuery.HandlerQuery()
示例#3
0
from modulesProject.clustering_analysis import callService
from modulesProject.dataBase_module import ConnectDataBase
from modulesProject.dataBase_module import HandlerQuery

import sys
import pandas as pd

#recibimos los datos de entrada...
dataSet = pd.read_csv(sys.argv[1])
job = sys.argv[2]
user = sys.argv[3]
pathResponse = sys.argv[4]
optionNormalize = int(sys.argv[5])

#instancia al objeto
callServiceObject = callService.serviceClustering(dataSet, job, user,
                                                  pathResponse,
                                                  optionNormalize)
callServiceObject.execProcess()

#cambiamos el estado al job
connectDB = ConnectDataBase.ConnectDataBase()
handler = HandlerQuery.HandlerQuery()

#hacemos la consulta
query = "update job set job.statusJob = 'FINISH', job.modifiedJob= NOW() where job.idjob=%s" % job

connectDB.initConnectionDB()
handler.insertToTable(query, connectDB)
connectDB.closeConnectionDB()
    def __init__(self, dataSet, idDataSet):

        self.dataSet = pd.read_csv(dataSet)
        self.idDataSet = idDataSet
        self.connect = ConnectDataBase.ConnectDataBase()
        self.handler = HandlerQuery.HandlerQuery()