original_docstring: 
          Changes consumption-related records variables given income_change
          and the current values of the MPC consumption parameters
          
docstring: Changes consumption-related records variables given income_change
  and the current values of the MPC consumption parameters
docstring_tokens: Changes consumption - related records variables given income_change and the current values of the MPC consumption parameters
code: def response(self, records, income_change):
          """
          Changes consumption-related records variables given income_change
          and the current values of the MPC consumption parameters
          """
          if not isinstance(records, Records):
              raise ValueError('records is not a Records object')
          for var in Consumption.RESPONSE_VARS:
              records_var = getattr(records, var)
              mpc_var = getattr(self, 'MPC_{}'.format(var))
              records_var[:] += mpc_var * income_change
code_tokens: def response ( self , records , income_change ) : if not isinstance ( records , Records ) : raise ValueError ( 'records is not a Records object' ) for var in Consumption . RESPONSE_VARS : records_var = getattr ( records , var ) mpc_var = getattr ( self , 'MPC_{}' . format ( var ) ) records_var [ : ] += mpc_var * income_change
short_docstring: Changes consumption-related records variables given income_change
  and the current values of the MPC consumption parameters
short_docstring_tokens: Changes consumption - related records variables given income_change and the current values of the MPC consumption parameters
comment: """
          Changes consumption-related records variables given income_change
          and the current values of the MPC consumption parameters
          """