示例#1
0
文件: base.py 项目: papagr/TheLMA
    def _are_matching_molecule_designs(self, rack_mds, exp_mds):
        """
        Checks whether the molecule designs for the positions match.
        The method will also try to determine the ISO if this has not
        been happened so far.
        """
        if exp_mds is None or isinstance(exp_mds, list):
            return BaseRackVerifier._are_matching_molecule_designs(
                self, rack_mds, exp_mds)

        # In case of floating position and unknown ISO ...
        for iso_label, iso_mds in exp_mds.iteritems():
            if BaseRackVerifier._are_matching_molecule_designs(
                    self, rack_mds, iso_mds):
                self._used_iso = iso_label
                return True

        return False
示例#2
0
文件: base.py 项目: helixyte/TheLMA
    def _are_matching_molecule_designs(self, rack_mds, exp_mds):
        """
        Checks whether the molecule designs for the positions match.
        The method will also try to determine the ISO if this has not
        been happened so far.
        """
        if exp_mds is None or isinstance(exp_mds, list):
            return BaseRackVerifier._are_matching_molecule_designs(self,
                                                      rack_mds, exp_mds)

        # In case of floating position and unknown ISO ...
        for iso_label, iso_mds in exp_mds.iteritems():
            if BaseRackVerifier._are_matching_molecule_designs(self,
                                                      rack_mds, iso_mds):
                self._used_iso = iso_label
                return True

        return False
示例#3
0
 def _are_matching_molecule_designs(self, rack_mds, exp_mds):
     """
     If comparison is disabled (because the current position is ignored)
     we always return *True*.
     In any case, comparison is enabled again.
     """
     if self.__disable_comparison:
         self.__disable_comparison = False
         return True
     return BaseRackVerifier._are_matching_molecule_designs(
         self, rack_mds, exp_mds)
示例#4
0
 def _are_matching_molecule_designs(self, rack_mds, exp_mds):
     """
     If comparison is disabled (because the current position is ignored)
     we always return *True*.
     In any case, comparison is enabled again.
     """
     if self.__disable_comparison:
         self.__disable_comparison = False
         return True
     return BaseRackVerifier._are_matching_molecule_designs(self, rack_mds,
                                                            exp_mds)