Project

General

Profile

« Previous | Next » 

Revision 4979

inputs/*/*/map.csv: Prefix a * to every term that's not in Veg+ for easy identification of unmapped terms when editing map.csv. Note that canon will remove the * when it finds a matching Veg+ term.

View differences:

src_map
10 10
import csvs
11 11
import opts
12 12

  
13
new_term_prefix = '*'
14

  
13 15
def main():
14 16
    # Usage
15 17
    env_names = []
......
30 32
    writer = csv.writer(sys.stdout)
31 33
    writer.writerow([datasrc+in_root_suffix, out_root, 'Filter', 'Comments'])
32 34
    for col_name in col_names:
33
        writer.writerow([col_name, col_name, '', ''])
35
        writer.writerow([col_name, new_term_prefix+col_name, '', ''])
34 36

  
35 37
main()

Also available in: Unified diff