-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabels.py
80 lines (62 loc) · 3.4 KB
/
labels.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
errors = {
"global.missing_ecotaxa_table": "#MISSING ecotaxa table",
"global.qc_not_implemented": "#Not impl",
"global.missing_column": "#MISSING column",
"global.bad_zip_file": "#BAD ZIP FILE",
"global.bad_meta_txt_file": "#BAD TXT FILE",
"global.unicode_decode_error": "#Unexcepted caractere in meta.txt",
"global.missing_meta_txt_file": "#MISSING Meta txt file",
"global.missing_directory.work": "#MISSING _work DIRECTORY",
"global.not_numeric": "#NOT NUMERIC",
"process.frame_type.not_ok" : "#Frame NOT OK",
"process.bw_ratio.not_ok": "#Ratio NOK",
"process.pixel_size.not_ok": "#Size NOK",
"process.raw_files.missing": "#MISSING FILE",
"process.raw_files.duplicate": "#DUPLICATE FILE",
"process.raw_files.rename_zip": "#BUG rename zip file",
"process.raw_files.inconsistent_scan_id": "#Inconsistent Scan ID",
"process.scan_weight.bug": "#BUG weight",
"process.post_scan.unprocessed": "#UNPROCESSED",
"process.post_scan.duplicate.tsv": "#DUPLICATE TSV",
"process.post_scan.missing.zip": "#MISSING ZIP",
"process.post_scan.duplicate.zip": "#DUPLICATE ZIP",
"process.post_scan.rename_zip": "#BUG rename zip file",
"process.sep_mask.missing": "#MISSING SEP MSK",
"process.post_sep.unprocessed": "#UNPROCESSED",
"process.post_sep.not_included": "#SEP MSK NOT INCLUDED",
"process.nb_lines_tsv.diff" : "#Images nb ≠ TSV lines nb",
"process.process_checked.not_checked" : "#NOT checked",
#TODO JCE : talk with AMANDA for better understanding of this QC
"acquisition.sieve.bug.different": "#SIEVE different from others",
"acquisition.sieve.bug.min_sup_max": "#ACQ MIN > ACQ MAX",
"acquisition.sieve.bug.min_equ_max": "#ACQ MIN = ACQ MAX",
"acquisition.sieve.bug.min_dn_dif_max_dn+1_1": "#ACQ MIN (d",
"acquisition.sieve.bug.min_dn_dif_max_dn+1_2": ") ≠ ACQ MAX (d",
"acquisition.motoda.check.identique": "#Identical Motoda",
#TODO JCE : talk with AMANDA 2^0==1
"acquisition.motoda.check.cas1": "#Motoda Fraction ≠ 1 or ≠ ^2",
"acquisition.motoda.check.cas2": "#Motoda Fraction ≠ ^2",
"acquisition.motoda.comparaison.ko": "#Motoda frac",
"acquisition.motoda.quality.missing": "#MISSING images",
"acquisition.motoda.quality.low": "#Images nb LOW : ",
"acquisition.motoda.quality.high": "#Images nb HIGH : ",
"multiples.level.high" : "#HIGH multiples level : ",
"multiples.no_zip_file" : "No zip file available in the ecotaxa/ forder of the selected project, please generate it on ecotaxa.",
"multiples.missing_directory.ecotaxa": "Please create manually a folder at the root of your project directory and name it “ecotaxa”. Then run this QC again."
}
sucess = {
"process.bw_ratio.ok": "Ratio OK",
"process.raw_files.ok": "Files OK",
"process.scan_weight.ok": "Weight OK",
"process.post_scan.ok": "Process OK",
"process.sep_mask.ok": "Sep mask OK",
"process.post_sep.ok": "process OK",
"process.nb_lines_tsv.ok" : "Nb lines TSV OK",
"process.process_checked.ok" : "Check OK",
"acquisition.sieve.bug.ok": "sieve OK",
"acquisition.motoda.check.ok": "Motoda OK",
"acquisition.motoda.comparaison.ok": "Motoda comparison OK",
"acquisition.motoda.quality.ok": "Motoda OK",
#error but this caracter can appear in correct strings that musn't marked as error (put in red)
"acquisition.sieve.bug.min_dn_dif_max_dn+1_3": ")",
}