Пример #1
0
 def test_getNodeBoards(self):
     nbv = pybgsched.getNodeBoards('R00-M0')
     assert len(nbv) == 16, "Improper number of NodeBoards returned."
     for i in range(0, len(nbv)):
         assert nbv[i].getLocation() == 'R00-M0-N%02d' % i, \
                 "Improper NodeBoard locations being returned."
     return
Пример #2
0
#!/usr/bin/env python

import pybgsched
from pybgsched import getComputeHardware
pybgsched.init("/bgsys/local/etc//bg.properties")
h = getComputeHardware()
m = h.getMidplane('R00-M0')
m.getState()
m.getInUse()
str(m)
nb = m.getNodeBoard(3)
str(nb)
nb.getQuadrant()
nbv = pybgsched.getNodeBoards('R00-M0')

print(nbv)
Пример #3
0
 def test_getNodeBoards(self):
     nbv = pybgsched.getNodeBoards("R00-M0")
     assert len(nbv) == 16, "Improper number of NodeBoards returned."
     for i in range(0, len(nbv)):
         assert nbv[i].getLocation() == "R00-M0-N%02d" % i, "Improper NodeBoard locations being returned."
     return
Пример #4
0
#!/usr/bin/pytho#!/usr/bin/python

import pybgsched
from pybgsched import getComputeHardware
pybgsched.init("../bg.properties")
h = getComputeHardware()
m = h.getMidplane('R00-M0')
m.getState()
m.getInUse()
str(m)
nb = m.getNodeBoard(3)
str(nb)
nb.getQuadrant()
nbv = pybgsched.getNodeBoards('R00-M0')


print(nbv)