def get_sample(self, sample_name):
samples = self.get_samples([sample_name])<EOL>if len(samples) > <NUM_LIT:1>:<EOL><INDENT>_LOGGER.warning("<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>return samples[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise ValueError("<STR_LIT>".format(sample_name))<EOL><DEDENT>
Get an individual sample object from the project.

Will raise a ValueError if the sample is not found. In the case of multiple
samples with the same name (which is not typically allowed), a warning is
raised and the first sample is returned.

:param str sample_name: The name of a sample to retrieve
:return Sample: The requested Sample object