Skip to content

Instantly share code, notes, and snippets.

@sbenthall
Created April 28, 2020 14:23
Show Gist options
  • Save sbenthall/67cb74c91e3e290308908f5d09ac5931 to your computer and use it in GitHub Desktop.
Save sbenthall/67cb74c91e3e290308908f5d09ac5931 to your computer and use it in GitHub Desktop.
# Changes to HARK code to adjust for 0.10.6 changes
## Some functions have been moved from HARK. utilities and HARK.simulation to HARK.distribution
WAS:
from HARK.utilities import approxUniform
NOW:
from HARK.distribution import approxUniform
## Distributions created in HARK are now DiscreteDistribution objects
## DiscreteDistribution objects have pmf and X (values) fields
WAS:
plt.scatter(IndShockExample.PermShkDstn[0][1],
IndShockExample.PermShkDstn[0][0])
NOW:
plt.scatter(IndShockExample.PermShkDstn[0].X,
IndShockExample.PermShkDstn[0].pmf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment