- Timestamp:
- Jan 5, 2009, 12:12:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/scripts/antenna.py
r6554 r6555 16 16 s = (s for s in sections if config.has_option(s, 'antenna') and \ 17 17 config.has_option(s, 'gain')) 18 antenna_list = {} 18 print_list = [] 19 antenna_dict = {} 20 19 21 for i in s: 20 22 antenna = config.get(i, 'antenna') 21 23 gain = config.get(i, 'gain') 22 ag_string = '%s /%s' % (antenna, gain)23 if not antenna_ list.has_key(ag_string):24 antenna_ list[ag_string] = 124 ag_string = '%s--%s' % (antenna, gain) 25 if not antenna_dict.has_key(ag_string): 26 antenna_dict[ag_string] = 1 25 27 else: 26 antenna_ list[ag_string] += 128 antenna_dict[ag_string] += 1 27 29 28 for i in antenna_list: 29 print "[%s]\t %s" % (antenna_list[i], i) 30 for i in antenna_dict: 31 print_list.append(i) 32 33 print_list.sort() 34 for i in print_list: 35 print "[%s]\t %s" % ( antenna_dict[i], i) 36 30 37 31 38 if __name__ == '__main__':
Note:
See TracChangeset
for help on using the changeset viewer.