def getSensors(self):
        """ Returns the currently visible state of the world as a numpy array
        of doubles.
        """
        Pd = array([b.p_demand for b in self.case.buses if b.type == PQ])
        logger.info("State: %s" % list(Pd))
        return Pd
Returns the currently visible state of the world as a numpy array
        of doubles.