Exemple #1
0
    def mixs(self, mixs):
        valid_dictionary = MIXS.check_dict(mixs)

        # Validate the incoming MIMARKS data
        if valid_dictionary:
            self.logger.debug("MIXS data seems correct.")
            self._mixs = mixs
        else:
            raise MixsException("Invalid MIXS data detected.")
Exemple #2
0
    def mixs(self, mixs):
        """
        The setter for the Sample MIXS.

        Args:
            mixs (dict): The new MIXS.

        Returns:
            None
        """
        valid_dictionary = MIXS.check_dict(mixs)

        # Validate the incoming MIXS data
        if valid_dictionary:
            self.logger.debug("MIXS data seems to be valid.")
            self._mixs = mixs
        else:
            raise MixsException("Invalid MIXS data detected.")
Exemple #3
0
    def mixs(self, mixs):
        """
        The setter for the Sample MIXS.
        
        Args:
            mixs (str): The new MIXS.
            
        Returns:
            None 
        """
        valid_dictionary = MIXS.check_dict(mixs)

        # Validate the incoming MIMARKS data
        if valid_dictionary:
            self.logger.debug("MIXS data seems correct.")
            self._mixs = mixs
        else:
            raise MixsException("Invalid MIXS data detected.")
Exemple #4
0
    def mixs(self, mixs):
        """
        The setter for the Project's MIXS. The MIXS dictionary input must validate
        with the MIXS class, and all minimal/required fields must be included. 
        
        Args:
            mixs (dict): The new MIXS dictionary to assign to this instance.
            
        Returns:
            None 
        """
        self.logger.debug("In mixs setter.")
        valid_dictionary = MIXS.check_dict(mixs)

        # Validate the incoming MIXS data
        if valid_dictionary:
            self.logger.debug("MIXS data seems correct.")
            self._mixs = mixs
        else:
            raise MixsException("Invalid MIXS data detected.")
Exemple #5
0
    def mixs(self, mixs):
        """
        The setter for the Project's MIXS. The MIXS dictionary input must validate
        with the MIXS class, and all minimal/required fields must be included. 
        
        Args:
            mixs (dict): The new MIXS dictionary to assign to this instance.
            
        Returns:
            None 
        """
        self.logger.debug("In mixs setter.")
        valid_dictionary = MIXS.check_dict(mixs)

        # Validate the incoming MIXS data
        if valid_dictionary:
            self.logger.debug("MIXS data seems correct.")
            self._mixs = mixs
        else:
            raise MixsException("Invalid MIXS data detected.")