Exemplo n.º 1
0
def restarting():
    data = {}
    for i in range(1, peopleCount + 1):
        data[str(i)] = experimentPerPerson
    writeToJson(path, data)
Exemplo n.º 2
0
def writeScheduleToFiles():
    writeToJson("schedule.json",solution)
Exemplo n.º 3
0
def setFirstWorkingDay(input):
    data = readFromJson()
    data["first working day"] = str(input)
    writeToJson(data)
Exemplo n.º 4
0
def updateStatus(personNumber, status):
    data = readFromJson("status.json")
    data[personNumber] = int(status)
    writeToJson("status.json", data)
Exemplo n.º 5
0
def setInterval(input):
    data = readFromJson(path)
    data["interval between measurements"] = str(input)
    writeToJson(path, data)
Exemplo n.º 6
0
def setMeasuringDuration(input):
    data = readFromJson(path)
    data["duration of one measuring"] = str(input)
    writeToJson(path, data)
Exemplo n.º 7
0
def setLastHour(input1, input2):
    data = readFromJson(path)
    data["last hour"] = str(input1) + ":" + str(input2)
    writeToJson(path, data)