File: InspectInfile.pyx

package info (click to toggle)
openms 1.11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 436,688 kB
  • ctags: 150,907
  • sloc: cpp: 387,126; xml: 71,547; python: 7,764; ansic: 2,626; php: 2,499; sql: 737; ruby: 342; sh: 325; makefile: 128
file content (24 lines) | stat: -rw-r--r-- 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24



    def getModifications(self):
        _r = self.inst.get().getModifications()
        py_result = dict()
        cdef Map[_String, libcpp_vector[_String]].iterator outer_it = _r.begin()
        cdef libcpp_vector[_String].iterator inner_it
        cdef String item_0
        cdef str inner_key
        cdef list inner_values
        while outer_it != _r.end():
           inner_key = deref(outer_it).first.c_str()
           inner_values = []
           inner_it = deref(outer_it).second.begin()
           while inner_it != deref(outer_it).second.end():
               # item_0 = CVTerm.__new__(CVTerm)
               # item_0.inst = shared_ptr[_CVTerm](new _CVTerm(deref(inner_it)))
               inner_values.append(  deref(inner_it).c_str() )
               inc(inner_it)
           py_result[inner_key] = inner_values
           inc(outer_it)
        return py_result