File: SpectrumAccessOpenMSCached.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 (19 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


    def getSpectrumById(self,  id ):
        assert isinstance(id, (int, long)), 'arg id wrong type'
    
        _r = self.inst.get().getSpectrumById((<int>id))
        cdef shared_ptr[_Spectrum] py_result = _r
        spec = Spectrum()
        spec.inst = _r
        return spec

    def getChromatogramById(self,  id ):
        assert isinstance(id, (int, long)), 'arg id wrong type'
    
        _r = self.inst.get().getChromatogramById((<int>id))
        cdef shared_ptr[_Chromatogram] py_result = _r
        chrom = Chromatogram()
        chrom.inst = _r
        return chrom