Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed May 3, 2024
1 parent 8d8a1f9 commit 523db00
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ogzaf/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@ def __init__(
client=None,
num_workers=1,
):
"""
Constructor for the Calibration class.
Args:
p (OG-Core Specifications object): model parameters
estimate_tax_functions (bool): whether to estimate tax
function parameters
estimate_beta (bool): whether to estimate beta
estimate_chi_n (bool): whether to estimate chi_n
estimate_pop (bool): whether to estimate population
tax_func_path (str): path to tax function parameter
estimates
iit_reform (dict): IIT reform dictionary
guid (str): unique identifier for reform
data (str): type of data to use in tax function
client (Dask client object): client
num_workers (int): number of workers
Returns:
None
"""
self.estimate_tax_functions = estimate_tax_functions
self.estimate_beta = estimate_beta
self.estimate_chi_n = estimate_chi_n
Expand Down Expand Up @@ -121,7 +143,12 @@ def get_tax_function_parameters(
parameters from microsimulation model output.
Args:
p (OG-Core Specifications object): model parameters
iit_reform (dict): IIT reform dictionary
guid (string): unique identifier for reform
data (string): type of data to use in tax function
client (Dask client object): client
num_workers (int): number of workers
run_micro (bool): whether to estimate parameters from
microsimulation model
tax_func_path (string): path where find or save tax
Expand Down Expand Up @@ -330,6 +357,7 @@ def read_tax_func_estimate(self, p, tax_func_path):
files.
Args:
p (OG-Core Specifications object): model parameters
tax_func_path (str): path to pickle with tax function
parameter estimates
Expand Down

0 comments on commit 523db00

Please sign in to comment.