[chronojump] Encoder graph: Better comments on code of SeparateSessionInDays



commit e467d347f41c303b7c6062cb8bc01cae7fd07e73
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 14 18:19:03 2019 +0100

    Encoder graph: Better comments on code of SeparateSessionInDays

 encoder/graph.R | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 3de0e1a8..ae3ea0e8 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -3824,10 +3824,10 @@ doProcess <- function(options)
                                if(op$SeparateSessionInDays)
                                {
                                        chunks = unlist(strsplit(curves[,7], " ")) #separate "2018-09-06 
12:12:4" in two chunks
-                                       chunks = chunks[seq(1, length(chunks), by = 2)]
+                                       chunks = chunks[seq(1, length(chunks), by = 2)] #this takes only odd 
elements
                                        print("chunks: ")
                                        print(chunks)
-                                       mySeriesNames = chunks
+                                       mySeriesNames = chunks #mySeriesNames will be: "2018-09-06" (so 
different series will have the same series number and analyzed together)
                                }
 
                                 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]