def get_sample_names(self):
        subfile_type = self.get_value('NewSubfileType')
        samples_per_pixel = self.get_value('SamplesPerPixel')
        if self.tiff.is_lsm:
            if subfile_type==0:
                return self.tiff.lsminfo.get('data channel name')
            if subfile_type==1 and samples_per_pixel==3:
                return ['red', 'green', 'blue']
        return ['sample%i' % i for i in range(samples_per_pixel)]
dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_file.py/IFD.get_sample_names/original