def _set_basic_samples(self):
<EOL>sub_ann = None<EOL>try:<EOL><INDENT>sub_ann = self.metadata[SAMPLE_SUBANNOTATIONS_KEY]<EOL><DEDENT>except KeyError:<EOL><INDENT>try:<EOL><INDENT>sub_ann = self.metadata["<STR_LIT>"]<EOL><DEDENT>except KeyError:<EOL><INDENT>_LOGGER.debug("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>warnings.warn("<STR_LIT>".<EOL>format(SAMPLE_SUBANNOTATIONS_KEY), DeprecationWarning)<EOL><DEDENT><DEDENT>if sub_ann and os.path.isfile(sub_ann):<EOL><INDENT>_LOGGER.info("<STR_LIT>", sub_ann)<EOL>subann_table = pd.read_csv(sub_ann,<EOL>sep=infer_delimiter(sub_ann), **READ_CSV_KWARGS)<EOL>self["<STR_LIT:_>" + SAMPLE_SUBANNOTATIONS_KEY] = subann_table<EOL>_LOGGER.debug("<STR_LIT>".format(subann_table.shape))<EOL><DEDENT>else:<EOL><INDENT>_LOGGER.debug("<STR_LIT>"<EOL>"<STR_LIT>", str(sub_ann))<EOL><DEDENT>self._check_subann_name_overlap()<EOL>self._samples = self._prep_samples()<EOL>self._check_unique_samples()<EOL>
Build the base Sample objects from the annotations sheet data.