def _fireWindowAttachEvent(self, window):
        # Fires the window attach event
        event = WindowAttachEvent(window)
        for l in self._windowAttachListeners:
            l.windowAttached(event)

        for callback, args in self._windowAttachCallbacks:
            callback(event, *args)
Test that handling of monitoring datasets dictionnary
dataset/ETHPy150Open rwl/muntjac/muntjac/application.py/Application._fireWindowAttachEvent--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/training_algorithms/tests/test_sgd.py/test_empty_monitoring_datasets