smblog -> log ... again

This commit is contained in:
Stephen Mardson McQuay 2010-10-29 12:42:05 -06:00
parent e9fb1eab03
commit 57685a1c04

View File

@ -62,14 +62,14 @@ def exact_func_3D(X):
def improved_answer(answer, exact, verbose=False):
if not answer['error']:
return True
smblog.debug('error: %s' % answer['error'])
smblog.debug('qlin: %s' % answer['qlin'])
smblog.debug('final: %s' % answer['final'])
smblog.debug('exact: %s' % exact)
log.debug('qlin: %s' % answer['qlin'])
log.debug('error: %s' % answer['error'])
log.debug('final: %s' % answer['final'])
log.debug('exact: %s' % exact)
if np.abs(answer['final'] - exact) <= np.abs(answer['qlin'] - exact):
smblog.debug(":) improved result")
log.debug(":) improved result")
return True
else:
smblog.debug(":( damaged result")
log.debug(":( damaged result")
return False