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
#!/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)
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
#!/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)