Changeset 208 for trunk/debian
- Timestamp:
- 01/15/10 14:50:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debian/changelog
r205 r208 1 pbs-python (3.6.0-1) lenny; urgency=low 2 3 * New generated files pbs_wrap.c and pbs.py fixes an error in pbs_runjob() 4 5 -- root <root@gb-r31vn6.irc.sara.nl.irc.sara.nl> Fri, 15 Jan 2010 04:40:35 +0100 6 1 7 pbs-python (3.5.0-1) lenny; urgency=low 2 8 … … 5 11 structure. 6 12 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 For more info see examples/new_interface.py13 Changed the behaviour of the new data stucture, We can use it as 14 dictionary and as class attribute, this is equivalent, eg: 15 - print node['np'] and print node.np 16 17 for a node we parse the 'status' line and split on '=' char, You now can 18 use these statements, eg 19 - print node.status.arch (node['status'].arch or node['status']['arch']) 20 - print node.status.nsession 21 22 for a job we parse the 'Variable_List' line and split on '=' char, You now can 23 use the statements, eg: 24 - print job.Variable_List.PBS_O_WORKDIR 25 - print job.Variable_List.PBS_O_HOME 26 27 for more info see examples/new_interface.py 22 28 23 29 Author: Bas van der Vlies 24 30 25 * new_rack_pbsmon.py26 27 28 29 30 Author: Bas van der Vlies31 32 -- Bas van der Vlies <bas@ rc.sara.nl> Mon, 12 Nov 2009 15:03:16 +020031 * new_rack_pbsmon.py 32 Rewrite to new data structure and automatically determine how many nodes 33 and racks cluster has and skip printing of empty racks (default), use -w/--wide 34 for old behaviour. 35 36 Author: Bas van der Vlies 37 38 -- Bas van der Vlies <bas@sara.nl> Mon, 12 Nov 2009 15:03:16 +0200 33 39 34 40 pbs-python (3.2.0-1) intrepid; urgency=low 35 41 36 42 * PBSQuery: 37 38 39 40 41 42 43 44 45 46 47 48 43 New data structure. In the old structure it is a dictionary 44 with a value and the value is a string. This is changed that 45 dictionary values are now of type list or dictionary depends 46 on the value of keyword, eg for a node: 47 - np = 2: 48 - node['np'] = [ '2' ] 49 - properties = cores2, mem4gb, parallel 50 - node['properties'] = [ 'cores2', 'mem4gb', 'parallel' ] 51 - status = arch=x86_64,sessions=22599,,size=70627864kb, ... 52 - node['status']['arch'] = [ 'x86_64' ] 53 - node['status']['sessions'] = [ '222599' ] 54 - ... 49 55 50 56 The data structure is activated by the function: … … 53 59 In a future release it will be come the default. 54 60 example: 55 56 p.new_data_structure() 57 58 59 61 p = PBSQuery() 62 p.new_data_structure() 63 64 nodes = p.getnodes() 65 print nodes.np, nodes['np'] 60 66 61 67 Author: Bas van der Vlies … … 63 69 * PBSQuery: 64 70 For old and new data structure we now can use another syntax: 65 71 - node['np'] and node.np are equivalent 66 72 67 73 This new syntax works for all keywords. … … 70 76 * PBSQuery: 71 77 Added iter object for job, node, queue and server objects, eg: 72 73 74 75 78 node = p.getnode('gb-r1n1') 79 print node.name 80 for attrib in node: 81 print '%\t%s = %s' %(attrib, node[attrib]) 76 82 Author: Bas van der Vlies 77 83
Note: See TracChangeset
for help on using the changeset viewer.