def hfimport(self): ret = {} for k in self.testcases: datafile = fullfile(k + "_hfimport.hdf5") if os.path.isfile(datafile): ret[k] = hdf5io.load(datafile) return ret
def hfdata(self): """ The HF data a testcase is based upon """ ret = {} for k in self.testcases: datafile = fullfile(k + "_hfdata.hdf5") # TODO This could be made a plain HDF5.File ret[k] = hdf5io.load(datafile) return ret
def reference_data(self): prefixes = [ "", "cvs", "fc", "fv", "fc_cvs", "fv_cvs", "fc_fv", "fc_fv_cvs" ] raws = ["adc0", "adc1", "adc2", "adc2x", "adc3"] methods = raws + [ "_".join([p, r]) for p in prefixes for r in raws if p != "" ] ret = {} for k in self.testcases: fulldict = {} for m in methods: datafile = fullfile(k + "_reference_" + m + ".hdf5") if datafile is None or not os.path.isfile(datafile): continue fulldict.update(hdf5io.load(datafile)) if fulldict: ret[k] = fulldict return ret