# HG changeset patch # User Frederic Bastien # Date 1268923749 14400 # Node ID d1a757d17e1969bf31a4484d6ff936f2e3b06e6c # Parent 70b061f142b2c8d7d9ab652634640657c1ff1e36 fix some import. diff -r 70b061f142b2 -r d1a757d17e19 pylearn/sandbox/test_scan_inputs_groups.py --- a/pylearn/sandbox/test_scan_inputs_groups.py Thu Mar 18 10:45:29 2010 -0400 +++ b/pylearn/sandbox/test_scan_inputs_groups.py Thu Mar 18 10:49:09 2010 -0400 @@ -9,6 +9,7 @@ import theano.tensor as T from pylearn.sandbox.scan_inputs_groups import FillMissing import theano.compile.mode as mode_module +import theano class TestFillMissing(unittest.TestCase): def setUp(self): @@ -16,9 +17,9 @@ #we need to desactivate the check for NaN value as we have them in input #TODO: Make an option to don't check NaN value in input only, bug check in output. - m=mode_module.default_mode - if m=="DEBUG_MODE": - m=copy.copy(mode_module.predefined_modes[m]) + m=mode_module.get_default_mode() + if isinstance(m,theano.compile.debugmode.DebugMode): + m=copy.copy(m) m.check_isfinite=False self.mode = m