[chronojump] processMultiDatabases: Tweaks to analyze belfast



commit cc60e8c227f003a41d3238d3dfa8aa91ebd032b1
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jan 16 16:01:12 2020 +0100

    processMultiDatabases: Tweaks to analyze belfast

 processMultiDatabases/computerDB.cs            | 4 ++--
 processMultiDatabases/person.cs                | 9 +++++++++
 processMultiDatabases/processMultiDatabases.cs | 5 +++--
 3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/processMultiDatabases/computerDB.cs b/processMultiDatabases/computerDB.cs
index c0d3c96b..cb81e15a 100644
--- a/processMultiDatabases/computerDB.cs
+++ b/processMultiDatabases/computerDB.cs
@@ -154,6 +154,7 @@ class ComputerDBManage
                                
"/home/xavier/Documents/academic/investigacio/Encoder_SITLESS/arxius-processats-per-ells/barcelona",
                                8, 4, 7,
                                "", "", "", ""));
+                               */
                list.Add(new ComputerDB(
                                "belfast",
                                "belfast",
@@ -161,7 +162,7 @@ class ComputerDBManage
                                "",
                                12, 14, 15,     //note: belfast has biceps curl 12 (2kg), and 13 (4kg)
                                "PRE", "PI", "12M", "18M"));
-                               */
+               /*
                list.Add(new ComputerDB(
                                "denmark",
                                "denmark1",
@@ -176,7 +177,6 @@ class ComputerDBManage
                                "",
                                8, 11, 7,
                                "PRE", "POST", "FU12", "FU18"));
-               /*
                list.Add(new ComputerDB(
                                "ulm",
                                "ulm1",
diff --git a/processMultiDatabases/person.cs b/processMultiDatabases/person.cs
index dde378c6..14b0e413 100644
--- a/processMultiDatabases/person.cs
+++ b/processMultiDatabases/person.cs
@@ -81,6 +81,15 @@ public class Person {
                        Match match = Regex.Match(name, @"^(\d+)");
                        if(match.Groups.Count == 2)
                                return match.Value;
+               } else if (city == "belfast")
+               {
+                       //firs num is the centre, second is the personCode
+                       //03-222-12M
+                       //03-176 PI
+                       //03-329
+                       Match match = Regex.Match(name, @"^\d+-(\d+)");
+                       if(match.Groups.Count == 2)
+                               return match.Groups[1].Value;
                }
 
                return "";
diff --git a/processMultiDatabases/processMultiDatabases.cs b/processMultiDatabases/processMultiDatabases.cs
index da123f38..b09263b7 100644
--- a/processMultiDatabases/processMultiDatabases.cs
+++ b/processMultiDatabases/processMultiDatabases.cs
@@ -96,7 +96,7 @@ using System.Collections.Generic; //List<T>
 class ProcessMultiDatabases
 {
        private bool debug = false; //on debug just 5 sets of each compDB-exercise are used
-       private int distMin = 20; //distMinSitToStand = 20; TODO: do this by exercise, before study what 
range of reps we have at each exercise starting with distMin = 5
+       private int distMin = 20; //distMinSitToStand = 20; TODO: do this by exercise, before study what 
range of reps we have at each exercise starting with distMin = 5. In jump better lower
        private Sqlite sqlite;
        TextWriter writer;
 
@@ -228,7 +228,8 @@ class ProcessMultiDatabases
                        if(debug && count >= 5)
                                break;
 
-                       System.Threading.Thread.Sleep(200);
+                       //System.Threading.Thread.Sleep(200);
+                       System.Threading.Thread.Sleep(50);
                        /*
                         * rest a bit 100 gave me one problem:
                         * System.IO.IOException: Write fault on path 
/home/xavier/informatica/progs_meus/chronojump/chronojump/processMultiDatabases/[Unknown]


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