本文整理汇总了Python中openfisca_core.simulations.ScenarioSimulation.disable_prestations方法的典型用法代码示例。如果您正苦于以下问题:Python ScenarioSimulation.disable_prestations方法的具体用法?Python ScenarioSimulation.disable_prestations怎么用?Python ScenarioSimulation.disable_prestations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openfisca_core.simulations.ScenarioSimulation
的用法示例。
在下文中一共展示了ScenarioSimulation.disable_prestations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_case
# 需要导入模块: from openfisca_core.simulations import ScenarioSimulation [as 别名]
# 或者: from openfisca_core.simulations.ScenarioSimulation import disable_prestations [as 别名]
def test_case(year):
simulation = ScenarioSimulation()
simulation.set_config(year = year, reforme=False, nmen = 2, maxrev = 19296, x_axis = 'sali')
simulation.scenario.addIndiv(1, datetime(2000,1,1).date(), 'pac', 'enf')
simulation.scenario.addIndiv(2, datetime(2000,1,1).date(), 'pac', 'enf')
# simulation.scenario.indiv[0]["alr"] = 2107
# simulation.scenario.indiv[0]["alr_decl"] = False
simulation.scenario.indiv[0]['caseT'] = True
simulation.set_param()
simulation.disable_prestations(["asf", "majo_rsa","api"])
# A the aefa prestation can be disabled by uncommenting the following line
# simulation.disable_prestations( ['aefa'])
df = simulation.get_results_dataframe()
print df.to_string()