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.")
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.")
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.")