(self)
return state
Save the current variable imputation state
Save the current variable imputation state
Save the current variable imputation state
def _store_state(self):
        # type: () -> VariableState
        """
        Save the current variable imputation state
        """
        state = {}  # type: VariableState
        for i, var in enumerate(self.varmodel):
            index = self.varmodel.index(i)
            m = index.data(StateRole)
            if m is not None:
                state[var_key(var)] = m
        return state
def _store_state ( self ) : # type: () -> VariableState state = { } # type: VariableState for i , var in enumerate ( self . varmodel ) : index = self . varmodel . index ( i ) m = index . data ( StateRole ) if m is not None : state [ var_key ( var ) ] = m return state