def sample(run): """Determine sample rate of a run.""" index = os.path.basename(run) try: par = read_parameters(index, paramf) return par['sample'] except KeyError: return 0
def __init__(self, regex): self.run_pattern = regex self.parameters = runbase.read_parameters(config.paramf) self.types = self.load_types()