Commit f438bcb0 authored by Richard O'Shaughnessy's avatar Richard O'Shaughnessy

convergence_test_samples.py: better treatment

parent f27a471e
......@@ -106,12 +106,12 @@ for param in opts.parameter:
# Perform test
val_test = np.inf
if opts.method is 'lame':
if opts.method == 'lame':
val_test = test_lame(dat1,dat2)
elif opts.method == 'KS_1d':
val_test = test_ks1d(dat1[:,0],dat2[:,0])
elif opts.method == 'KL_1d':
val_test = test_KL1d(dat1,dat2)
val_test = test_KL1d(dat1[:,0],dat2[:,0])
else:
print " No known method ", opts.method
print val_test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment