Skip to content

Commit 76cf68e

Browse files
committed
Just changed white space and comments.
1 parent c8addfa commit 76cf68e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pbsutils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def _show_attr_name_remapping(conn):
4545
b = pbs.pbs_statvnode(conn, '', None, None)
4646
while b != None:
4747
attributes = {} # Init the dictionary to empty.
48-
4948
attribs = b.attribs # The parameter attrib is a pointer to an attrl structure.
5049
attributes['node_name'] = b.name
5150
while attribs != None:
@@ -111,7 +110,6 @@ def get_nodes (conn):
111110
b = pbs.pbs_statvnode(conn, '', None, None)
112111
while b != None:
113112
attributes = {} # Init the dictionary to empty.
114-
115113
attribs = b.attribs # The parameter attrib is a pointer to an attrl structure.
116114
#print '------------', b.name, '------------------'
117115
attributes['node_name'] = b.name
@@ -226,15 +224,14 @@ def get_jobs(conn):
226224
This function returns a list of jobs, where each job is a dictionary.
227225
228226
This is the list of resources requested by the job, e.g.:
229-
230227
Resource_List : mem = 120gb
231228
Resource_List : ncpus = 24
232229
Resource_List : nodect = 1
233230
Resource_List : place = free
234231
Resource_List : select = 1:ncpus=24:mem=120GB
235232
Resource_List : walltime = 200:00:00
236233
237-
This is a non-resource attribute, e.g.
234+
These are non-resource attributes, e.g.
238235
Job_Name : AuCuZn
239236
Job_Owner : 999777@hpcnode0
240237
job_state : Q
@@ -255,6 +252,7 @@ def get_jobs(conn):
255252
b = pbs.pbs_statjob(conn, '', None, None)
256253
while b != None:
257254
attributes = {} # Init the dictionary to empty.
255+
# Init the values of the attributes.
258256
for name in attribute_names:
259257
attributes[name] = ''
260258

0 commit comments

Comments
 (0)