def add_periodic_callback(self, callback, period_milliseconds, cleanup=None):
        if callback in self._periodic_callbacks:
            raise ValueError("Callback added as a periodic callback twice")
        cb = _AsyncPeriodic(
            callback, period_milliseconds, io_loop=self._loop
        )
        def remover():
            cb.stop()
            self._remover(callback, self._periodic_callbacks, cleanup)
        self._periodic_callbacks[callback] = remover
        cb.start()
        return remover
Set the diagonal of the entire matrix to 1.0
dataset/ETHPy150Open bokeh/bokeh/bokeh/util/tornado.py/_CallbackGroup.add_periodic_callback--crossover with--dataset/ETHPy150Open OP2/PyOP2/test/unit/test_matrices.py/TestMatrices.test_mat_repeated_set_diagonal