smblog -> log ... again
This commit is contained in:
parent
e9fb1eab03
commit
57685a1c04
@ -62,14 +62,14 @@ def exact_func_3D(X):
|
|||||||
def improved_answer(answer, exact, verbose=False):
|
def improved_answer(answer, exact, verbose=False):
|
||||||
if not answer['error']:
|
if not answer['error']:
|
||||||
return True
|
return True
|
||||||
smblog.debug('error: %s' % answer['error'])
|
log.debug('qlin: %s' % answer['qlin'])
|
||||||
smblog.debug('qlin: %s' % answer['qlin'])
|
log.debug('error: %s' % answer['error'])
|
||||||
smblog.debug('final: %s' % answer['final'])
|
log.debug('final: %s' % answer['final'])
|
||||||
smblog.debug('exact: %s' % exact)
|
log.debug('exact: %s' % exact)
|
||||||
|
|
||||||
if np.abs(answer['final'] - exact) <= np.abs(answer['qlin'] - exact):
|
if np.abs(answer['final'] - exact) <= np.abs(answer['qlin'] - exact):
|
||||||
smblog.debug(":) improved result")
|
log.debug(":) improved result")
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
smblog.debug(":( damaged result")
|
log.debug(":( damaged result")
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user