Blame 0001-Fix-tab-mixing.patch
|
|
ae01b1d |
From 7a09c41c0244b751101ada26f0353451a5a13b23 Mon Sep 17 00:00:00 2001
|
|
|
ae01b1d |
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
ae01b1d |
Date: Sat, 12 Dec 2015 16:01:01 +0100
|
|
|
ae01b1d |
Subject: [PATCH 1/5] Fix tab mixing
|
|
|
ae01b1d |
|
|
|
ae01b1d |
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
ae01b1d |
---
|
|
|
ae01b1d |
src/Quest.py | 6 +++---
|
|
|
ae01b1d |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
ae01b1d |
|
|
|
ae01b1d |
diff --git a/src/Quest.py b/src/Quest.py
|
|
|
ae01b1d |
index 9d101ce..f84a8b4 100644
|
|
|
ae01b1d |
--- a/src/Quest.py
|
|
|
ae01b1d |
+++ b/src/Quest.py
|
|
|
ae01b1d |
@@ -458,13 +458,13 @@ def demo():
|
|
|
ae01b1d |
tTest=tTest+random.choice([-0.1,0,0.1])
|
|
|
ae01b1d |
|
|
|
ae01b1d |
# Simulate a trial
|
|
|
ae01b1d |
- timeSplit=time.time(); # omit simulation and printing from reported time/trial.
|
|
|
ae01b1d |
+ timeSplit=time.time(); # omit simulation and printing from reported time/trial.
|
|
|
ae01b1d |
response=q.simulate(tTest,tActual)
|
|
|
ae01b1d |
print 'Trial %3d at %4.1f is %s'%(k+1,tTest,wrongRight[int(response)])
|
|
|
ae01b1d |
- timeZero=timeZero+time.time()-timeSplit;
|
|
|
ae01b1d |
+ timeZero=timeZero+time.time()-timeSplit;
|
|
|
ae01b1d |
|
|
|
ae01b1d |
# Update the pdf
|
|
|
ae01b1d |
- q.update(tTest,response);
|
|
|
ae01b1d |
+ q.update(tTest,response);
|
|
|
ae01b1d |
|
|
|
ae01b1d |
# Print results of timing.
|
|
|
ae01b1d |
print '%.0f ms/trial'%(1000*(time.time()-timeZero)/trialsDesired)
|
|
|
ae01b1d |
--
|
|
|
ae01b1d |
2.6.4
|
|
|
ae01b1d |
|