pyyeti.cla.DR_Results.rptpct

DR_Results.rptpct(refres, names=('Self', 'Reference'), event=None, drms=None, fileext='.cmp', direc='compare', keyconv=None, **rptpct1_args)[source]

Write comparison files for all max/min data in results.

Parameters:
  • refres (dictionary) – Dictionary of reference results to compare to. Keys are the category names and values are either:

    1. A 2-column array_like of [max, min], or

    2. A SimpleNamespace with the .ext ([max, min]) member and, optionally, the .drminfo.labels member. If present, the labels will be used to compare only the rows with the same labels.

    Notes:

    1. If the keys are different than those in self (eg, ‘SC_ifa’, ‘SC_atm’, etc), then the input keyconv is necessary.

    2. If a key in self is not found in refres, a message is printed and that item is skipped.

  • names (list/tuple; optional) – 2-element list or tuple identifying the two sets of results that are being compared. The first is for self and the second is for refres.

  • event (string or None; optional) – String identifying the event; if None, event is taken from each self[category].event. Used for titling.

  • drms (list of data recovery categories or None; optional) – Data recovery categories to compare. If None, compare all available.

  • fileext (string; optional) – String to attach on to the DRM name for filename creation

  • direc (string; optional) – Name of directory to put tables; will be created if doesn’t exist

  • keyconv (dictionary or None; optional) – Dictionary to map self[event] keys to the keys of refres. The keys are those of self[event] and the values are the keys in refres. Only those keys that need converting are required. For example, if self[event] uses the name ‘SC_atm’, but refres uses ‘SCATM’, then, assuming all other names match, keyconv = {'SC_atm': 'SCATM'} would be sufficient. Note: if a key is in keyconv, it is used even if refres[key] exists.

  • rptpct1_args (dict) – All remaining named args are passed to rptpct1()