Tax-Calculator Consumption#

Tax-Calculator Consumption

taxcalc.consumption#

class taxcalc.consumption.Consumption[source]#

Consumption is a subclass of the abstract Parameters class, and therefore, inherits its methods (none of which are shown here).

Constructor for Consumption class.

Parameters:

none

Returns:

class instance

Return type:

Consumption

benval_params()[source]#

Returns list of BEN_*_value parameter values

has_response()[source]#

Return true if any MPC parameters are positive for current_year or if any BEN value parameters are less than one for current_year; return false if all MPC parameters are zero and all BEN value parameters are one

static read_json_update(obj)[source]#

Return a revision dictionary suitable for use with update_consumption method derived from the specified JSON object, which can be None or a string containing a local filename, a URL beginning with ‘http’ pointing to a valid JSON file hosted online, or a valid JSON text.

response(records, income_change)[source]#

Changes consumption-related records variables given income_change and the current values of the MPC consumption parameters

update_consumption(revision, print_warnings=True, raise_errors=True)[source]#

Update consumption default values using specified revision dictionary. See Parameters._update for argument documentation and details about the expected structure of the revision dictionary.