Tax-Calculator GrowDiff

Tax-Calculator GrowDiff

taxcalc.growdiff

class taxcalc.growdiff.GrowDiff[source]

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

Constructor for GrowDiff class.

Parameters

none

Returns

class instance

Return type

GrowDiff

apply_to(growfactors)[source]

Apply updated GrowDiff values to specified GrowFactors instance.

has_any_response()[source]

Returns true if any parameter is non-zero for any year; returns false if all parameters are zero in all years.

static read_json_update(obj, topkey)[source]

Return a revision dictionary suitable for use with update_growdiff method generated 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.

update_growdiff(revision, print_warnings=True, raise_errors=True)[source]

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