+ removed stupid temp file
authorfabio <fabio@e1793c9e-67f9-0310-80fc-b846ff1f7b36>
Mon, 2 Jun 2008 15:34:46 +0000 (15:34 +0000)
committerfabio <fabio@e1793c9e-67f9-0310-80fc-b846ff1f7b36>
Mon, 2 Jun 2008 15:34:46 +0000 (15:34 +0000)
git-svn-id: http://svn.tuebingen.mpg.de/ag-raetsch/projects/QPalma@9337 e1793c9e-67f9-0310-80fc-b846ff1f7b36

ParaParser/.ParaParser.cpp.swp [deleted file]
ParaParser/ParaParser.cpp

diff --git a/ParaParser/.ParaParser.cpp.swp b/ParaParser/.ParaParser.cpp.swp
deleted file mode 100644 (file)
index ee493c4..0000000
Binary files a/ParaParser/.ParaParser.cpp.swp and /dev/null differ
index 0c326ba..53af6be 100644 (file)
@@ -176,15 +176,15 @@ void ParaParser::create_entry_from_line(const char* current_line, char* format_s
    map_key_t id = strtoul(current_entries[0],NULL,10);
 
    if ( current_mode == IN_VECTOR ) {
-      printf("size is %zd\n",v_entries->size());
+      //printf("size is %zd\n",v_entries->size());
       v_entries->push_back(current_entries);
-      printf("size is %zd\n",v_entries->size());
+      //printf("size is %zd\n",v_entries->size());
    }
 
    if ( current_mode == IN_MAP ) {
-      printf("size is %zd\n",entries->size());
+      //printf("size is %zd\n",entries->size());
       (*entries)[id] = current_entries;
-      printf("size is %zd\n",entries->size());
+      //printf("size is %zd\n",entries->size());
    }
 }
 
@@ -306,22 +306,21 @@ PyObject* ParaParser::fetchEntry(map_key_t id) {
    //MAP::iterator iter;   
    //for(iter = entries->begin(); iter != entries->end(); iter++)
    //   printf("%d\n", iter->first);
-   //
-   printf("query key is %lu\n",id);
+   //printf("query key is %lu\n",id);
 
    char** current_entry;
 
    if ( current_mode == IN_VECTOR ) {
-      printf("IN_VECTOR mode\n");
+      //printf("IN_VECTOR mode\n");
       if (id >= v_entries->size())
          return line_dict;
 
-      printf("size %d\n",v_entries->size());
+      //printf("size %d\n",v_entries->size());
       current_entry = (*v_entries)[id];
    }
 
    if ( current_mode == IN_MAP ) {
-      printf("IN_MAP mode\n");
+      //printf("IN_MAP mode\n");
       MAP::iterator find_it = entries->find(id);
       if( find_it == entries->end() )
          return line_dict;
@@ -349,7 +348,9 @@ PyObject* ParaParser::fetchEntry(map_key_t id) {
          elem = PyString_FromString(current);
 
       if ( strcmp(current_type,"lu")==0 )
-         elem = PyLong_FromString(current,NULL,10);
+         elem = PyString_FromString(current);
+         //elem = PyInt_FromString(current,NULL,10);
+         //elem = PyLong_FromString(current,NULL,10);
          
       if (elem == 0)
          printf("Error: type %s/ elem %s\n",current_type,current);