Esempio n. 1
0
def copyFiles(queryDir, moteNum, text):
    print(str(cycleFile))
    print(queryDir)
    if ((moteNum == None) or (moteNum == 0)):
        CycleCompare.copyFile2(queryDir, cycleFile, "Cycle", text)
        cycleFile.write("\n")
        array = CycleCompare.copyFile2(queryDir, energyFile, "energy", text)
        queryEnergyFile.write(array[1][2] + ",")
        energyFile.write("\n")
        array = CycleCompare.copyFile2(queryDir, greenFile, "green", text)
        queryGreenFile.write(array[1][3] + ",")
        array = CycleCompare.copyFile2(queryDir, redFile, "red", text)
        queryRedFile.write(array[1][3] + ",")
        array = CycleCompare.copyFile2(queryDir, yellowFile, "yellow", text)
        queryYellowFile.write(array[1][3] + ",")
        queryYellowMinFile.write(array[1][2] + ",")
    else:
        CycleCompare.copyAFile2(queryDir, cycleFile, "Cycle", moteNum, text)
        cycleFile.write("\n")
        array = CycleCompare.copyAFile2(queryDir, energyFile, "energy",
                                        moteNum, text)
        queryEnergyFile.write(array[0][2] + ",")
        energyFile.write("\n")
        array = CycleCompare.copyAFile2(queryDir, greenFile, "green", moteNum,
                                        text)
        queryGreenFile.write(array[0][3] + ",")
        array = CycleCompare.copyAFile2(queryDir, redFile, "red", moteNum,
                                        text)
        queryRedFile.write(array[0][3] + ",")
        array = CycleCompare.copyAFile2(queryDir, yellowFile, "yellow",
                                        moteNum, text)
        queryYellowFile.write(array[0][3] + ",")
        queryYellowMinFile.write(array[0][2] + ",")
def copyFiles(queryDir, moteNum, text):
    print(str(cycleFile))
    print(queryDir)
    if ((moteNum == None) or (moteNum == 0)):
        CycleCompare.copyFile2(queryDir, cycleFile, "Cycle", text)
        cycleFile.write("\n")
        CycleCompare.copyFile2(queryDir, greenFile, "green", text)
        CycleCompare.copyFile2(queryDir, energyFile, "energy", text)
        energyFile.write("\n")
        CycleCompare.copyFile2(queryDir, redFile, "red", text)
        CycleCompare.copyFile2(queryDir, sizeFile, "size", text)
        CycleCompare.copyFile2(queryDir, yellowFile, "yellow", text)
    else:
        CycleCompare.copyAFile2(queryDir, cycleFile, "Cycle", moteNum, text)
        CycleCompare.copyAFile2(queryDir, greenFile, "green", moteNum, text)
        CycleCompare.copyAFile2(queryDir, energyFile, "energy", moteNum, text)
        CycleCompare.copyAFile2(queryDir, redFile, "red", moteNum, text)
        CycleCompare.copyAFile2(queryDir, sizeFile, "size", moteNum, text)
        CycleCompare.copyAFile2(queryDir, yellowFile, "yellow", moteNum, text)