[med-svn] [aghermann] 27/31: tweak basic_score.lua again

andrei zavada hmmr-guest at alioth.debian.org
Sun Nov 10 00:34:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit 690634571260c68d00031b8a10bd8df1512e1eb1
Author: Andrei Zavada <hmmr at ra>
Date:   Sun Nov 10 01:55:59 2013 +0200

    tweak basic_score.lua again
---
 upstream/data/basic_score.lua |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/upstream/data/basic_score.lua b/upstream/data/basic_score.lua
index fb8820b..4147f36 100644
--- a/upstream/data/basic_score.lua
+++ b/upstream/data/basic_score.lua
@@ -109,26 +109,27 @@ print( string.format( "Montage has %d EEG channels", cc[1]))
 
 local H = cc[2]
 local nf, np, ps, sr = get_channel_data (H)
-print( string.format( "Looking at channel %q: %d full pages (%d total) @%d sec, samplerate %d", H, np, nf, ps, sr))
+print( string.format( "Looking at channel %q: %d full pages (%d total) @%d sec, samplerate %d", H, nf, np, ps, sr))
 
 local delta = {get_psd (H, 1, nf, 2, 3)}
 local theta = {get_psd (H, 1, nf, 4, 8)}
 
 local n_scored = 0
 for p=1,nf-1 do
-  dirty = get_page_dirty(H, p)
-  if dirty > 0 then
-     print( string.format("p %d dirty (%g)", p, dirty))
-  end
+  -- dirty = get_page_dirty(H, p)
+  -- if dirty > 0 then
+  --   print( string.format("p %d dirty (%g)", p, dirty))
+  -- end
   -- print( get_signal_envelope(H, p, 1, 1))
 
   if delta[p] > theta[p] * 1.5 then
      n_scored = n_scored+1
-     print( "mark page ", p)
+     -- print( "mark page ", p)
      put_score (p, nrem3)
   end
 end
 
 print( string.format("scored %d pages", n_scored))
+print("")
 
 return n_scored

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list