Exemple #1
0
    def mims(self, mims):
        self.logger.debug("In mims setter.")

        valid_dictionary = MIMS.check_dict(mims)

        # Validate the incoming MIMS data
        if valid_dictionary:
            self.logger.debug("MIMS data seems correct.")
            self._mims = mims
        else:
            raise MimsException("Invalid MIMS data detected.")
Exemple #2
0
    def mims(self, mims):
        """
        The setter for the WgsDnaPrep MIMS. The provided dictionary
        must validate based on the MIMS class.

        Args:
            mims (dict): A MIMS dictionary.

        Returns:
            None
        """
        self.logger.debug("In mims setter.")

        valid_dictionary = MIMS.check_dict(mims)

        # Validate the incoming MIMS data
        if valid_dictionary:
            self.logger.debug("MIMS data seems correct.")
            self._mims = mims
        else:
            raise MimsException("Invalid MIMS data detected.")
Exemple #3
0
    def mims(self, mims):
        """
        The setter for the WgsDnaPrep MIMARKS. The provided dictionary
        must validate based on the MIMARKS class. 
        
        Args:
            mimars (dict): The new MIMARKS dictionary. 
            
        Returns:
            None 
        """
        self.logger.debug("In mims setter.")

        valid_dictionary = MIMS.check_dict(mims)

        # Validate the incoming MIMS data
        if valid_dictionary:
            self.logger.debug("MIMS data seems correct.")
            self._mims = mims
        else:
            raise MimsException("Invalid MIMS data detected.")