oplus/epm/record.py
def add_fields(self, *args):
        """
        This method only works for extensible fields. It allows to add values without precising their fields' names
        or indexes.

        Parameters
        ----------
        args: field values
        """
        if not self.is_extensible():
            raise TypeError("Can't use add_fields on a non extensible record.")

        # prepare update data
        self_len = len(self)
        data = dict([(self_len + i, args[i]) for i in range(len(args))])

        # update
        self.update(data)
def add_fields(self, *args):
        if not self.is_extensible():
            raise TypeError("Can't use add_fields on a non extensible record.")

        # prepare update data
        self_len = len(self)
        data = dict([(self_len + i, args[i]) for i in range(len(args))])

        # update
        self.update(data)
def add_fields ( self , * args ) : if not self . is_extensible ( ) : raise TypeError ( "Can't use add_fields on a non extensible record." ) # prepare update data self_len = len ( self ) data = dict ( [ ( self_len + i , args [ i ] ) for i in range ( len ( args ) ) ] ) # update self . update ( data )
This method only works for extensible fields. It allows to add values without precising their fields' names
        or indexes.

        Parameters
        ----------
        args: field values
This method only works for extensible fields . It allows to add values without precising their fields names or indexes .