def load_sim_data(self): """ Returns simulation data for all TBs in spec file """ results_dict = {} for name, info in self.specs['tb_params'].items(): data_dir = info['data_dir'] fname = os.path.join(data_dir, '%s.hdf5' % name) print('loading simulation data for %s' % name) results_dict[name] = load_sim_file(fname) print('finish loading data') return results_dict
def load_sim_data(specs, dsn_name): dsn_specs = specs[dsn_name] data_dir = dsn_specs['data_dir'] gen_cell = dsn_specs['gen_cell'] testbenches = dsn_specs['testbenches'] results_dict = {} for name, info in testbenches.items(): tb_gen_cell = '%s_%s' % (gen_cell, name) fname = os.path.join(data_dir, '%s.hdf5' % tb_gen_cell) print('loading simulation data for %s' % tb_gen_cell) results_dict[name] = load_sim_file(fname) print('finish loading data') return results_dict