PolicyEngine / openfisca-tools

Python tools for enhancing OpenFisca country packages.
1 stars 1 forks source link

Accept `IndividualSim(reform=None)` #59

Open MaxGhenis opened 2 years ago

MaxGhenis commented 2 years ago

This could be helpful for functions, e.g. currently I'm doing this:

def single_person_sim(reform=None):
    if reform is None:  # Breaks if passing IndividualSim(None).
        sim = IndividualSim(year=2022)
    else:
        sim = IndividualSim(reform, year=2022)