docs: def scoreit(pars, PmagSpecRec, accept, text, verbose):
      """
      gets a grade for a given set of data, spits out stuff
      """
      s = PmagSpecRec["er_specimen_name"]
      PmagSpecRec["measurement_step_min"] = '%8.3e' % (
          pars["measurement_step_min"])
      PmagSpecRec["measurement_step_max"] = '%8.3e' % (
          pars["measurement_step_max"])
      PmagSpecRec["measurement_step_unit"] = pars["measurement_step_unit"]
      PmagSpecRec["specimen_int_n"] = '%i' % (pars["specimen_int_n"])
      PmagSpecRec["specimen_lab_field_dc"] = '%8.3e' % (
          pars["specimen_lab_field_dc"])
      PmagSpecRec["specimen_int"] = '%8.3e ' % (pars["specimen_int"])
      PmagSpecRec["specimen_b"] = '%5.3f ' % (pars["specimen_b"])
      PmagSpecRec["specimen_q"] = '%5.1f ' % (pars["specimen_q"])
      PmagSpecRec["specimen_f"] = '%5.3f ' % (pars["specimen_f"])
      PmagSpecRec["specimen_fvds"] = '%5.3f' % (pars["specimen_fvds"])
      PmagSpecRec["specimen_b_beta"] = '%5.3f' % (pars["specimen_b_beta"])
      PmagSpecRec["specimen_int_mad"] = '%7.1f' % (pars["specimen_int_mad"])
      PmagSpecRec["specimen_dec"] = '%7.1f' % (pars["specimen_dec"])
      PmagSpecRec["specimen_inc"] = '%7.1f' % (pars["specimen_inc"])
      PmagSpecRec["specimen_int_dang"] = '%7.1f ' % (pars["specimen_int_dang"])
      PmagSpecRec["specimen_drats"] = '%7.1f ' % (pars["specimen_drats"])
      PmagSpecRec["specimen_int_ptrm_n"] = '%i ' % (pars["specimen_int_ptrm_n"])
      PmagSpecRec["specimen_rsc"] = '%6.4f ' % (pars["specimen_rsc"])
      PmagSpecRec["specimen_md"] = '%i ' % (int(pars["specimen_md"]))
      PmagSpecRec["specimen_b_sigma"] = '%5.3f ' % (pars["specimen_b_sigma"])
      if 'specimen_scat' in list(pars.keys()):
          PmagSpecRec['specimen_scat'] = pars['specimen_scat']
      if 'specimen_gmax' in list(pars.keys()):
          PmagSpecRec['specimen_gmax'] = '%5.3f' % (pars['specimen_gmax'])
      if 'specimen_frac' in list(pars.keys()):
          PmagSpecRec['specimen_frac'] = '%5.3f' % (pars['specimen_frac'])
      # PmagSpecRec["specimen_Z"]='%7.1f'%(pars["specimen_Z"])
    # check score
      #
      kill = grade(PmagSpecRec, accept, 'specimen_int')
      Grade = ""
      if len(kill) == 0:
          Grade = 'A'
      else:
          Grade = 'F'
      pars["specimen_grade"] = Grade
      if verbose == 0:
          return pars, kill
      diffcum = 0
      if pars['measurement_step_unit'] == 'K':
          outstr = "specimen     Tmin  Tmax  N  lab_field  B_anc  b  q  f(coe)  Fvds  beta  MAD  Dang  Drats  Nptrm  Grade  R  MD%  sigma  Gamma_max \n"
          pars_out = (s, (pars["measurement_step_min"] - 273), (pars["measurement_step_max"] - 273), (pars["specimen_int_n"]), 1e6 * (pars["specimen_lab_field_dc"]), 1e6 * (pars["specimen_int"]), pars["specimen_b"], pars["specimen_q"], pars["specimen_f"], pars["specimen_fvds"],
                      pars["specimen_b_beta"], pars["specimen_int_mad"], pars["specimen_int_dang"], pars["specimen_drats"], pars["specimen_int_ptrm_n"], pars["specimen_grade"], np.sqrt(pars["specimen_rsc"]), int(pars["specimen_md"]), pars["specimen_b_sigma"], pars['specimen_gamma'])
          outstring = '%s %4.0f %4.0f %i %4.1f %4.1f %5.3f %5.1f %5.3f %5.3f %5.3f  %7.1f %7.1f %7.1f %s %s %6.3f %i %5.3f %7.1f' % pars_out + '\n'
      elif pars['measurement_step_unit'] == 'J':
          outstr = "specimen     Wmin  Wmax  N  lab_field  B_anc  b  q  f(coe)  Fvds  beta  MAD  Dang  Drats  Nptrm  Grade  R  MD%  sigma  ThetaMax DeltaMax GammaMax\n"
          pars_out = (s, (pars["measurement_step_min"]), (pars["measurement_step_max"]), (pars["specimen_int_n"]), 1e6 * (pars["specimen_lab_field_dc"]), 1e6 * (pars["specimen_int"]), pars["specimen_b"], pars["specimen_q"], pars["specimen_f"], pars["specimen_fvds"], pars["specimen_b_beta"],
                      pars["specimen_int_mad"], pars["specimen_int_dang"], pars["specimen_drats"], pars["specimen_int_ptrm_n"], pars["specimen_grade"], np.sqrt(pars["specimen_rsc"]), int(pars["specimen_md"]), pars["specimen_b_sigma"], pars["specimen_theta"], pars["specimen_delta"], pars["specimen_gamma"])
          outstring = '%s %4.0f %4.0f %i %4.1f %4.1f %5.3f %5.1f %5.3f %5.3f %5.3f  %7.1f %7.1f %7.1f %s %s %6.3f %i %5.3f %7.1f %7.1f %7.1f' % pars_out + '\n'
      if pars["specimen_grade"] != "A":
          print('\n killed by:')
          for k in kill:
              print(k, ':, criterion set to: ',
                    accept[k], ', specimen value: ', pars[k])
          print('\n')
      print(outstr)
      print(outstring)
      return pars, kill