- Timestamp:
- Mar 9, 2012, 8:10:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tools/gformat.py ¶
r10060 r10067 416 416 return datadump 417 417 418 def store_yaml(datadump ):418 def store_yaml(datadump, header=True): 419 419 """ Store configuration yaml for 'item'""" 420 420 item = datadump['autogen_item'] … … 422 422 423 423 f = open(gfile, 'w') 424 f.write(generate_wleiden_yaml(datadump ))424 f.write(generate_wleiden_yaml(datadump, header)) 425 425 f.close() 426 426 … … 519 519 520 520 521 def generate_wleiden_yaml(datadump ):521 def generate_wleiden_yaml(datadump, header=True): 522 522 """ Generate (petty) version of wleiden.yaml""" 523 523 for key in datadump.keys(): … … 530 530 del datadump[key][key2] 531 531 532 533 output = generate_header("#") 532 output = generate_header("#") if header else '' 534 533 output += format_wleiden_yaml(datadump) 535 534 return output … … 902 901 for key,datadump in datadumps.iteritems(): 903 902 datadump['latitude'], datadump['longitude'] = rdnap.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y']) 904 store_yaml(datadump )903 store_yaml(datadump, header=False) 905 904 elif sys.argv[1] == "list": 906 905 if sys.argv[2] == "nodes":
Note:
See TracChangeset
for help on using the changeset viewer.