collection/collectionMaker.py
def load_files(self, field_name=None, field_id=None, field_ext=None):
        """
        Load all files meet the given filters, each one above can be left blank
        :param field_name: name of the field
        :param field_id: name of the id
        :param field_ext: name of the field extension
        :return:
        """
        if field_name is None:
            field_name = self.field_name
        if field_id is None:
            field_id = self.field_id
        field_ext = ersa_utils.str2list(field_ext, d_type=str)
        files = []
        for fe in field_ext:
            if fe in self.rgb_ext:
                select_file_ext = self.file_ext[self.rgb_ext.index(fe)]
            else:
                select_file_ext = self.file_ext[-1]
            if type(field_id) is not str:
                field_id = str(field_id)
            file = ersa_utils.rotate_list(self.get_file_selection(field_name, field_id, fe, select_file_ext))[0]
            files.append(file)

        files = ersa_utils.rotate_list(files)
        if len(files) == 1:
            if len(files[0]) == 1:
                # only one file been requested
                return files[0][0]
        return files

        Load all files meet the given filters, each one above can be left blank
        :param field_name: name of the field
        :param field_id: name of the id
        :param field_ext: name of the field extension
        :return:
        
Load all files meet the given filters, each one above can be left blank
Load all files meet the given filters each one above can be left blank
def load_files(self, field_name=None, field_id=None, field_ext=None):
        if field_name is None:
            field_name = self.field_name
        if field_id is None:
            field_id = self.field_id
        field_ext = ersa_utils.str2list(field_ext, d_type=str)
        files = []
        for fe in field_ext:
            if fe in self.rgb_ext:
                select_file_ext = self.file_ext[self.rgb_ext.index(fe)]
            else:
                select_file_ext = self.file_ext[-1]
            if type(field_id) is not str:
                field_id = str(field_id)
            file = ersa_utils.rotate_list(self.get_file_selection(field_name, field_id, fe, select_file_ext))[0]
            files.append(file)
        files = ersa_utils.rotate_list(files)
        if len(files) == 1:
            if len(files[0]) == 1:
                return files[0][0]
        return files
def load_files ( self , field_name = None , field_id = None , field_ext = None ) : if field_name is None : field_name = self . field_name if field_id is None : field_id = self . field_id field_ext = ersa_utils . str2list ( field_ext , d_type = str ) files = [ ] for fe in field_ext : if fe in self . rgb_ext : select_file_ext = self . file_ext [ self . rgb_ext . index ( fe ) ] else : select_file_ext = self . file_ext [ - 1 ] if type ( field_id ) is not str : field_id = str ( field_id ) file = ersa_utils . rotate_list ( self . get_file_selection ( field_name , field_id , fe , select_file_ext ) ) [ 0 ] files . append ( file ) files = ersa_utils . rotate_list ( files ) if len ( files ) == 1 : if len ( files [ 0 ] ) == 1 : return files [ 0 ] [ 0 ] return files
Load all files meet the given filters, each one above can be left blank
Load all files meet the given filters each one above can be left blank
"""
        Load all files meet the given filters, each one above can be left blank
        :param field_name: name of the field
        :param field_id: name of the id
        :param field_ext: name of the field extension
        :return:
        """ # only one file been requested
None
self
field_name
name of the field
name of the field
field_id
name of the id
name of the id
field_ext
name of the field extension
name of the field extension