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

« back to all changes in this revision

Viewing changes to pyOpenMS/addons/IsobaricIsotopeCorrector.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 __init__ItraqEightPlexQuantitationMethod(self, ItraqEightPlexQuantitationMethod this_quant_method):
 
5
        self.initialize_from_ptr( this_quant_method.inst.get() )
 
6
 
 
7
    def __init__ItraqFourPlexQuantitationMethod(self, ItraqFourPlexQuantitationMethod this_quant_method):
 
8
        self.initialize_from_ptr( this_quant_method.inst.get() )
 
9
 
 
10
    def __init__TMTSixPlexQuantitationMethod(self, TMTSixPlexQuantitationMethod this_quant_method):
 
11
        self.initialize_from_ptr( this_quant_method.inst.get() )
 
12
 
 
13
    cdef initialize_from_ptr(self, _IsobaricQuantitationMethod * this_quant_method):
 
14
        self.inst = shared_ptr[_IsobaricIsotopeCorrector](new _IsobaricIsotopeCorrector(( this_quant_method )))
 
15
 
 
16
    def __init__from_self(self, IsobaricIsotopeCorrector in_0 ):
 
17
        assert isinstance(in_0, IsobaricIsotopeCorrector), 'arg in_0 wrong type'
 
18
    
 
19
        self.inst = shared_ptr[_IsobaricIsotopeCorrector](new _IsobaricIsotopeCorrector((deref(in_0.inst.get()))))
 
20
 
 
21
    def __init__(self, input_arg):
 
22
        if isinstance(input_arg, IsobaricIsotopeCorrector):
 
23
            self.__init__from_self(input_arg)
 
24
        elif isinstance(input_arg, ItraqEightPlexQuantitationMethod):
 
25
            self.__init__ItraqEightPlexQuantitationMethod(input_arg)
 
26
        elif isinstance(input_arg, ItraqFourPlexQuantitationMethod):
 
27
            self.__init__ItraqFourPlexQuantitationMethod(input_arg)
 
28
        elif isinstance(input_arg, TMTSixPlexQuantitationMethod):
 
29
            self.__init__TMTSixPlexQuantitationMethod(input_arg)
 
30
        else:
 
31
            raise Exception("Cannot create with input type %s" % type(input_arg))