Revize 1187e871
Přidáno uživatelem Petr Hlaváč před asi 4 roky(ů)
python-module/Pipeline.py | ||
---|---|---|
66 | 66 |
unknown_devices_size = len(unknown_devices_set) |
67 | 67 |
|
68 | 68 |
if unknown_devices_size != 0: |
69 |
print("There is " + str(unknown_devices_size) + " unknown devices") |
|
69 |
print("There is " + str(unknown_devices_size) + " unknown devices\n") |
|
70 |
print("Adding devices to " + config["dataset-name"] + " config file\n") |
|
70 | 71 |
ConfigureFunctions.update_configuration(config["dataset-name"], unknown_devices_set) |
71 | 72 |
return False |
72 | 73 |
|
74 |
for device in config["devices"]: |
|
75 |
device = config["devices"][device] |
|
76 |
if device["x"] == "UNKNOWN!" or device["y"] == "UNKNOWN!": |
|
77 |
print(config["dataset-name"] + " Config file contains devices with UNKOWN! values please update them\n") |
|
78 |
return False |
|
79 |
|
|
80 |
return True |
|
81 |
|
|
73 | 82 |
|
74 | 83 |
def load_data_to_database(config): |
75 | 84 |
""" |
Také k dispozici: Unified diff
Re #7966
- Vytvoreny pomocne skripty pro spravu datasetu