(self, name, data=None)
Load data for an index variable.
Load data for an index variable.
Load data for an index variable .
def load_index(self, name, data=None):
        """Load data for an index variable."""
        variable = self.get_variable(name)
        if data is None:
            data = variable.get('data', None)
        if data is not None:
            self.indexsize = len(data)
            Attribute.bind(variable['buffer'], index=True)
            Attribute.load(data, index=True)
def load_index ( self , name , data = None ) : variable = self . get_variable ( name ) if data is None : data = variable . get ( 'data' , None ) if data is not None : self . indexsize = len ( data ) Attribute . bind ( variable [ 'buffer' ] , index = True ) Attribute . load ( data , index = True )