-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Move non-reusable model code to examples/ #442
Conversation
There are now a few DemARKs that are essentially just documentation for HARK tools. Those should all be moved to a new "examples" directory that is part of the HARK structure. Some of them (but not all) have file names ending in "Doc." |
The current PR is aimed at cleaning up the HARK package by taking specific model/result code out of the I've reviewed each module for downstream dependencies. See this comment and following notes: These three subdirectories of
While incomplete from the perspective of #440 (because there is still a lot of |
The notebooks inside BayerLuetticke aren't updated with the new path. running
this should be changed to the correct path in examples. running
and In LifecycleModelExample.py
should be
|
This PR supersedes #335, removing StickyE from HARK. |
Thanks for the review @MridulS
I've now fixed these paths.
Instead of changing the path on the LifecycleModelExample, I changed the location of the While this is quite awkward, I wanted to leave it as unchanged as possible because it exposes how econ-ark has been using some conflicting standards/assumptions in its management of parameters. A common pattern in REMARK-like uses of HARK is to put parameters in a |
Added fix for #451 here with |
…used in docs). Fixes econ-ark#451" This reverts commit 2c21161.
I've reverted my commit intended to address #451 and merged in the true fix from |
I've added I fixed the formatting of the first markdown cell block. I do get an error when running the flat
I get this error in the original DemARK as well, and I do not get it when running this in a notebook. |
Well, it's certainly something to do with LaTeX. I'm guessing that when running as a notebook you for some reason are getting different access to the command-line LaTeX than when running on the command line. Not sure why that would be, but if so it is also a potential danger in the AWS headless server environment. |
Requesting merge or review @MridulS |
I'm confused by the history above, which seems to have diverged from being about some issue about whether there are different LaTeX environments for notebooks vs ipython command-line execution, to being about moving this to examples. Did the LaTeX issue get resolved? If so, what was the resolution? In particular, do we need to avoid some particular LaTeX syntax to avoid similar future problems? |
@llorracc I think the confusion is due to how this PR suffered from scope creep.
I think that work on #459 and #463 should follow the merge of this PR, so that the changes are as incremental as possible. |
This is ready to merge. |
Could you provide a link to the relevant [this] which is ready to merge?
There are a lot of things linked in the foregoing ...
…On Fri, Jan 3, 2020 at 2:46 PM Sebastian Benthall ***@***.***> wrote:
This is ready to merge.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442?email_source=notifications&email_token=AAKCK77PGHDRLCEO2UIC4TDQ36IX5A5CNFSM4JR7KO22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIB5XWI#issuecomment-570678233>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKCK76FTZSMVN7HLQL4IK3Q36IX5ANCNFSM4JR7KO2Q>
.
--
- Chris Carroll
|
@@ -16,7 +16,7 @@ | |||
getPercentiles, getLorenzShares, calcSubpopAvg, approxLognormal | |||
from HARK.simulation import drawDiscrete | |||
from HARK import Market | |||
import HARK.cstwMPC.SetupParamsCSTW as Params | |||
import SetupParamsCSTW as Params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbenthall this is the issue here for econ-ark/DemARK#83
Addressing #440
Not ready for merge yet--not all the code functionality has been tested.
This is to show how it would work if the paper-specific research models were not
HARK
subpackages but rather were in anexamples/
directory, an architectural pattern common to many scientific software libraries (matplotlib
,networkx
,Dolo
).I left
HARK.ConsumptionSaving
as is because that code is used by multiple downstream models.There may be other reusable code from the other paper-specific models as well.
With this proposed architecture, reusable code would go into the HARK library as (sub)packages.
Code specific to the demonstration of a particular research result would go in
examples/
.