collection/collectionMaker.py
def add_channel(self, files, new_field_ext):
        """
        Add a channel to the collection, then remake the meta data
        :param files: files correspond to the added channel
        :param new_field_ext: new field extension
        :return:
        """
        if new_field_ext in self.rgb_ext:
            print('{} already exits!'.format(new_field_ext))
            return
        new_file_ext = files[0].split('.')[-1]
        self.rgb_ext.append(new_field_ext)
        if len(self.gt_ext) == 0:
            self.file_ext.append(new_file_ext)
        else:
            self.file_ext.append(self.file_ext[-1])
            self.file_ext[-2] = new_file_ext
        # update files, then re-make meta data
        # need to re-compute mean here, can be improved in the future
        self.files += files
        self.clc_pb.run(True)
        self.meta_data = self.read_meta_data()

        Add a channel to the collection, then remake the meta data
        :param files: files correspond to the added channel
        :param new_field_ext: new field extension
        :return:
        
Add a channel to the collection, then remake the meta data
Add a channel to the collection then remake the meta data
def add_channel(self, files, new_field_ext):
        if new_field_ext in self.rgb_ext:
            print('{} already exits!'.format(new_field_ext))
            return
        new_file_ext = files[0].split('.')[-1]
        self.rgb_ext.append(new_field_ext)
        if len(self.gt_ext) == 0:
            self.file_ext.append(new_file_ext)
        else:
            self.file_ext.append(self.file_ext[-1])
            self.file_ext[-2] = new_file_ext
        self.files += files
        self.clc_pb.run(True)
        self.meta_data = self.read_meta_data()
def add_channel ( self , files , new_field_ext ) : if new_field_ext in self . rgb_ext : print ( '{} already exits!' . format ( new_field_ext ) ) return new_file_ext = files [ 0 ] . split ( '.' ) [ - 1 ] self . rgb_ext . append ( new_field_ext ) if len ( self . gt_ext ) == 0 : self . file_ext . append ( new_file_ext ) else : self . file_ext . append ( self . file_ext [ - 1 ] ) self . file_ext [ - 2 ] = new_file_ext self . files += files self . clc_pb . run ( True ) self . meta_data = self . read_meta_data ( )
Add a channel to the collection, then remake the meta data
Add a channel to the collection then remake the meta data
"""
        Add a channel to the collection, then remake the meta data
        :param files: files correspond to the added channel
        :param new_field_ext: new field extension
        :return:
        """ # update files, then re-make meta data # need to re-compute mean here, can be improved in the future
None
self
files
files correspond to the added channel
files correspond to the added channel
new_field_ext
new field extension
new field extension