~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to pyOpenMS/addons/InspectInfile.pyx

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2013-12-20 11:30:16 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131220113016-wre5g9bteeheq6he
Tags: 1.11.1-3
* remove version number from libbost development package names;
* ensure that AUTHORS is correctly shipped in all packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
 
 
4
    def getModifications(self):
 
5
        _r = self.inst.get().getModifications()
 
6
        py_result = dict()
 
7
        cdef Map[_String, libcpp_vector[_String]].iterator outer_it = _r.begin()
 
8
        cdef libcpp_vector[_String].iterator inner_it
 
9
        cdef String item_0
 
10
        cdef str inner_key
 
11
        cdef list inner_values
 
12
        while outer_it != _r.end():
 
13
           inner_key = deref(outer_it).first.c_str()
 
14
           inner_values = []
 
15
           inner_it = deref(outer_it).second.begin()
 
16
           while inner_it != deref(outer_it).second.end():
 
17
               # item_0 = CVTerm.__new__(CVTerm)
 
18
               # item_0.inst = shared_ptr[_CVTerm](new _CVTerm(deref(inner_it)))
 
19
               inner_values.append(  deref(inner_it).c_str() )
 
20
               inc(inner_it)
 
21
           py_result[inner_key] = inner_values
 
22
           inc(outer_it)
 
23
        return py_result
 
24