def test_getComputeHardware(self): h = pybgsched.getComputeHardware() assert h != None, "pybgsched.getComputeHardware() returned None." assert isinstance( h, pybgsched.ComputeHardware ), "getComputeHardware returned improper class. Reports as %s" % type(h) 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_getComputeHardware(self): h = pybgsched.getComputeHardware() assert h != None, 'pybgsched.getComputeHardware() returned None.' assert isinstance(h, pybgsched.ComputeHardware),\ 'getComputeHardware returned improper class. Reports as %s' % type(h) 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)