def get_channel_names(self):
names_s, names_n = self.channel_names_s, self.channel_names_n<EOL>if self._channel_naming == '<STR_LIT>':<EOL><INDENT>channel_names, channel_names_alternate = names_s, names_n<EOL><DEDENT>else:<EOL><INDENT>channel_names, channel_names_alternate = names_n, names_s<EOL><DEDENT>if len(channel_names) == <NUM_LIT:0>:<EOL><INDENT>channel_names = channel_names_alternate<EOL><DEDENT>if len(set(channel_names)) != len(channel_names):<EOL><INDENT>msg = (u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>'<EOL>u'<STR_LIT>')<EOL>msg = msg.format(self._channel_naming)<EOL>warnings.warn(msg)<EOL>channel_names = channel_names_alternate<EOL><DEDENT>return channel_names<EOL>
Get list of channel names. Raises a warning if the names are not unique.