Revize 1187e871
Přidáno uživatelem Petr Hlaváč před asi 4 roky(ů)
python-module/DatasetProcessing/JISProcessor.py | ||
---|---|---|
27 | 27 |
|
28 | 28 |
date = DateFormating.date_time_formatter(array[1][1:-1]) |
29 | 29 |
name = array[0][1:-1] |
30 |
occurence = array[2][:-1] |
|
30 |
occurrence = array[2][:-1]
|
|
31 | 31 |
|
32 | 32 |
if date not in date_dict: |
33 | 33 |
date_dict[date] = dict() |
34 | 34 |
|
35 | 35 |
if name in date_dict[date]: |
36 |
date_dict[date][name].occurence += int(occurence)
|
|
36 |
date_dict[date][name].occurrence += int(occurrence)
|
|
37 | 37 |
else: |
38 |
date_dict[date][name] = CSVDataLine.CSVDataLine(name, date, int(occurence)) |
|
38 |
date_dict[date][name] = CSVDataLine.CSVDataLine(name, date, int(occurrence))
|
|
39 | 39 |
|
40 | 40 |
CSVutils.export_data_to_csv(filename, date_dict) |
41 | 41 |
return True |
Také k dispozici: Unified diff
Re #7966
- Vytvoreny pomocne skripty pro spravu datasetu