Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重度心身障害者手当の所得制限の配偶者特別控除上限額をパラメータファイル化する #221

Open
Syuparn opened this issue Jan 18, 2024 · 0 comments
Labels
good first issue Good for newcomers バックエンド OpenFIsca Python API

Comments

@Syuparn
Copy link
Contributor

Syuparn commented Jan 18, 2024

バックエンドのvariable 重度心身障害者手当所得制限 内にある配偶者特別控除の上限額をparameterのyamlファイル化します。

現在は上限額33万円が以下のように直接ソースコードに書き込まれているので、パラメータファイル openfisca_japan/parameters/東京都/福祉/重度心身障害者手当/配偶者特別控除上限額.yaml から読み込むように修正します。

配偶者特別控除 = np.clip(対象人物.世帯("配偶者特別控除", 対象期間), 0, 330000)

制度の説明: https://www.fukushi.metro.tokyo.lg.jp/shinsho/teate/jidou.html

yamlファイルの書き方は https://github.com/project-inclusive/OpenFisca-Japan/blob/main/openfisca_japan/parameters/%E6%9D%B1%E4%BA%AC%E9%83%BD/%E7%A6%8F%E7%A5%89/%E9%87%8D%E5%BA%A6%E5%BF%83%E8%BA%AB%E9%9A%9C%E5%AE%B3%E8%80%85%E6%89%8B%E5%BD%93/%E9%87%8D%E5%BA%A6%E5%BF%83%E8%BA%AB%E9%9A%9C%E5%AE%B3%E8%80%85%E6%89%8B%E5%BD%93%E9%A1%8D.yaml が参考になります。

作成したパラメータは Pythonのソースコード上 parameters(対象期間).東京都.福祉.重度心身障害者手当.配偶者特別控除上限額 で参照できます。

@Syuparn Syuparn added good first issue Good for newcomers バックエンド OpenFIsca Python API labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers バックエンド OpenFIsca Python API
Projects
None yet
Development

No branches or pull requests

1 participant