docs: def check_specimen_PI_criteria(pars,acceptance_criteria):
      '''
      # Check if specimen pass Acceptance criteria
      '''
      #if 'pars' not in self.Data[specimen].kes():
      #    return
  
      pars['specimen_fail_criteria']=[]
      for crit in list(acceptance_criteria.keys()):
          if crit not in list(pars.keys()):
              continue
          if acceptance_criteria[crit]['value']==-999:
              continue
          if acceptance_criteria[crit]['category']!='IE-SPEC':
              continue
          cutoff_value=acceptance_criteria[crit]['value']
          if crit=='specimen_scat':
              if pars["specimen_scat"] in ["Fail",'b',0,'0','FALSE',"False",False,"f"]:
                  pars['specimen_fail_criteria'].append('specimen_scat')
          elif crit=='specimen_k' or crit=='specimen_k_prime':
              if abs(pars[crit])>cutoff_value:
                  pars['specimen_fail_criteria'].append(crit)
          # high threshold value:
          elif acceptance_criteria[crit]['threshold_type']=="high":
              if pars[crit]>cutoff_value:
                  pars['specimen_fail_criteria'].append(crit)
          elif acceptance_criteria[crit]['threshold_type']=="low":
              if pars[crit]<cutoff_value:
                  pars['specimen_fail_criteria'].append(crit)
      return pars