Skip to content

Instantly share code, notes, and snippets.

View openfisca-us-tutorial.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View openfisca-us-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:0dd34c186f001a0268b96e65c5d44195
Delivered-To: redacted@gmail.com
Received: by 2002:ab3:7407:0:0:0:0:0 with SMTP id o7csp1334714lte;
Fri, 17 Dec 2021 08:47:38 -0800 (PST)
X-Google-Smtp-Source: ABdhPJwX48wr3ihwVIfOf2CLSNRILq3BqcJUeKu8HaEICAiV+j+T2PMXT4v6puZF0rDRCThFFLSP
X-Received: by 2002:a05:6638:12cb:: with SMTP id v11mr2474737jas.284.1639759658135;
Fri, 17 Dec 2021 08:47:38 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1639759658; cv=pass;
d=google.com; s=arc-20160816;
b=L0Ik0xzUpHIGF+trMwl72wjXaxsRwNYL5Al+OK7P/O1BY7Mnrmio54GguEj8X41BtG
3fhSXza4+UWoNKRFTF840LimabIJZGXPU+V38KcPphajyvLVbQL2lJkqSFbWNxunjn79
View gist:7b748a2cb4aa65e9ef3b2141e0e6c84a
Delivered-To: redacted@gmail.com
Received: by 2002:ab3:7407:0:0:0:0:0 with SMTP id o7csp1731395lte;
Fri, 17 Dec 2021 17:43:49 -0800 (PST)
X-Received: by 2002:a05:6e02:1cae:: with SMTP id x14mr3017830ill.170.1639791829467;
Fri, 17 Dec 2021 17:43:49 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1639791829; cv=none;
d=google.com; s=arc-20160816;
b=Lswd/I/Ff4ouwOv6ivlRF7hoIYjuHI9mYzsPzE3uRKQaHEx4Ixx/FZjGvk2A9IXAZV
LJmZ4nu6PSEoywT/5Ffscvcgi7wi4WHRPA7kFZiJUHM2k8/dk5CdRw+mEXsfbq3n97Hg
AecF5BM02ppVAoZvzfxLseRbqmf3ERSG2/Sat1OwGoIbJHej152qg7fTku3kHm5vk6Ij
@MaxGhenis
MaxGhenis / gist:3117dac6f90b2c96ce98b757811f22a4
Created Jan 6, 2022
Error when running `make test` on an OpenFisca system with a parameter named `children.yaml`
View gist:3117dac6f90b2c96ce98b757811f22a4
py37) maxghenis@Maxs-MacBook-Pro openfisca-uk % make test
openfisca test -c openfisca_uk openfisca_uk/tests/policy/baseline
Traceback (most recent call last):
File "/Users/maxghenis/opt/anaconda3/envs/py37/bin/openfisca", line 8, in <module>
sys.exit(main())
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/openfisca_command.py", line 68, in main
return sys.exit(main(parser))
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/run_test.py", line 15, in main
tax_benefit_system = build_tax_benefit_system(args.country_package, args.extensions, args.reforms)
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/__init__.py", line 24, in build_tax_benefit_system
View Sunak reported income tax cuts 2021-12-03.csv
Basic rate Additional rate Cost Poverty reduction Benefit to bottom decile Benefit to top decile
20% 40% £1.3bn 0.0% 0.0% 0.7%
19% 45% £4.4bn 0.2% 0.0% 0.5%
19% 40% £5.7bn 0.2% 0.0% 1.2%
18% 45% £8.8bn 0.3% 0.1% 1.1%
18% 40% £10.1bn 0.3% 0.1% 1.7%
@MaxGhenis
MaxGhenis / gist:d7db8a5ce07ad10f0f8205ab39aa5ff1
Created Aug 23, 2020
VSCode after editing `/usr/bin/code` to add sommelier
View gist:d7db8a5ce07ad10f0f8205ab39aa5ff1
(base) mghenis@penguin:~/MaxGhenis/microdf$ code
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
xkbcommon: ERROR: Key "<CAPS>" added to modifier map for multiple modifiers; Using Mod3, ignoring Lock
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported maximum keycode 569, clipping.
> X11 cannot support keycodes above 255.
> Warning: Unsupported high keycode 372 for name <I372> ignored
@MaxGhenis
MaxGhenis / run_ogusa_example_error
Created Aug 2, 2020
Log of error when running run_ogusa_example.py
View run_ogusa_example_error
c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Charity_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Casualty_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Miscellaneous_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_ps': {2017: [261500, 313800, 156900, 287650, 313800]}, 'ID_BenefitSurtax_em': {2017: [0, 0, 0, 0, 0]}, 'ID_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'CG_brk3': {2017: [9e+99,
9e+99, 9e+99, 9e+99, 9e+99]}, 'AMT_CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'AMT_CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'AMT_CG_brk3': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_ec': {2017: 0}, 'AMT_child_em': {2017: 7500}, 'AMT_brk1': {2017: 187800}, 'EITC_c': {2017: [510, 3400, 5616, 6318]}, 'EITC_ps': {2017: [8340, 18340, 18340, 18340]}, 'EITC_ps_MarriedJ': {2017: [5600, 5600, 5600, 5600]}, 'EITC_InvestIncome_c': {2017: 3450}, 'ETC_pe
@MaxGhenis
MaxGhenis / sphinx-err-pb292o6k.log
Created Jul 9, 2020
Error message when trying to build a Jupyter-book with ```- url: https://ubicenter.org \n title: UBI Center home``` (see https://github.com/executablebooks/jupyter-book/issues/764)
View sphinx-err-pb292o6k.log
# Sphinx version: 2.4.4
# Python version: 3.7.7 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/home/mghenis/anaconda3/lib/python3.7/site-packages/jupyter_book/sphinx.py", line 209, in build_sphinx
keep_going=keep_going,
View sphinx-err-kq4n_l6b.log
# Sphinx version: 2.4.4
# Python version: 3.7.7 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
# Running Sphinx v2.4.4
# making output directory...
# done
# building [mo]: targets for 0 po files that are out of date
# building [html]: targets for 2 source files that are out of date