Changeset 208 for trunk/debian


Ignore:
Timestamp:
01/15/10 14:50:17 (14 years ago)
Author:
bas
Message:

new generated pbs_wrap.c and pbs.py fixes an error in pbs_runjob()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/changelog

    r205 r208  
     1pbs-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
    17pbs-python (3.5.0-1) lenny; urgency=low
    28
     
    511        structure.
    612
    7         Changed the behaviour of the new data stucture, We can use it as
    8         dictionary and as class attribute, this is equivalent, eg:
    9           - print node['np'] and print node.np
    10 
    11         for a node we parse the 'status' line and split on '=' char, You now can
    12         use these statements, eg
    13           - print node.status.arch     (node['status'].arch or node['status']['arch'])
    14           - print node.status.nsession
    15 
    16         for a job we parse the 'Variable_List' line and split on '=' char, You now can
    17         use the statements, eg:
    18           - print job.Variable_List.PBS_O_WORKDIR
    19           - print job.Variable_List.PBS_O_HOME
    20 
    21         For more info see examples/new_interface.py
     13    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
    2228
    2329    Author: Bas van der Vlies
    2430
    25  * new_rack_pbsmon.py
    26         Rewrite to new data structure and automatically determine how many nodes
    27         and racks cluster has and skip printing of empty racks (default), use -w/--wide
    28         for old behaviour.
    29        
    30    Author: Bas van der Vlies
    31 
    32  -- Bas van der Vlies <bas@rc.sara.nl>  Mon, 12 Nov 2009 15:03:16 +0200
     31  * 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
    3339
    3440pbs-python (3.2.0-1) intrepid; urgency=low
    3541
    3642  *  PBSQuery:
    37         New data structure. In the old structure it is a dictionary
    38         with a value and the value is a string. This is changed that
    39         dictionary values are now of type list or dictionary depends
    40         on the value of keyword, eg for a node:
    41           - np = 2:
    42                 - node['np'] = [ '2' ]
    43           - properties = cores2, mem4gb, parallel
    44                 - node['properties'] = [ 'cores2', 'mem4gb', 'parallel' ]
    45           - status = arch=x86_64,sessions=22599,,size=70627864kb, ...
    46                 - node['status']['arch'] = [ 'x86_64' ]
    47                 - node['status']['sessions'] = [ '222599' ]
    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       - ...
    4955
    5056         The data structure is activated by the function:
     
    5359         In a future release it will be come the default.
    5460         example:
    55                 p = PBSQuery()
    56                 p.new_data_structure()
    57 
    58                 nodes = p.getnodes()
    59                 print nodes.np, nodes['np']
     61         p = PBSQuery()
     62         p.new_data_structure()
     63
     64        nodes = p.getnodes()
     65        print nodes.np, nodes['np']
    6066
    6167         Author: Bas van der Vlies
     
    6369  *  PBSQuery:
    6470        For old and new data structure we now can use another syntax:
    65         - node['np'] and node.np are equivalent
     71    - node['np'] and node.np are equivalent
    6672
    6773        This new syntax works for all keywords.
     
    7076  *  PBSQuery:
    7177        Added iter object for job, node, queue and server objects, eg:
    72                 node = p.getnode('gb-r1n1')
    73                 print node.name
    74                 for attrib in node:
    75                         print '%\t%s = %s' %(attrib, node[attrib])
     78        node = p.getnode('gb-r1n1')
     79        print node.name
     80        for attrib in node:
     81           print '%\t%s = %s' %(attrib, node[attrib])
    7682        Author: Bas van der Vlies
    7783
Note: See TracChangeset for help on using the changeset viewer.