def process_samples(lims_process):
    """Retrieve LIMS input samples from a process."""
    for artifact in lims_process.all_inputs():
        for lims_sample in artifact.samples:
            yield {'sample': lims_sample, 'artifact': artifact}
