-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Export HARK model to Dolang #659
Comments
One aspect of this problem is for Distribution objects to be able to export their specification in Dolang syntax: https://github.com/econ-ark/DARKolo/blob/master/chimeras/BufferStock/bufferstock.yaml#L32-L34 |
That shouldn't be too much too hard. What is the problem ?
…On Mon, Apr 27, 2020 at 7:12 PM Sebastian Benthall ***@***.***> wrote:
One aspect of this problem is for Distribution objects to be able to
export their specification in Dolang syntax:
https://github.com/econ-ark/DARKolo/blob/master/chimeras/BufferStock/bufferstock.yaml#L32-L34
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#659 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDSKJIXXOF5KH6IQOMA2DROW4GZANCNFSM4MSAISIA>
.
|
Exporting DIstribution objects in Dolang syntax is relatively easy compared to other parts of the HARK model export. But one thing that has to happen before this is useful for exporting HARK models is that where possible HARK parameters should be entered as Distributions, rather than as the parameters themselves. See |
Hmm, I must correct myself. |
The ideal solution to this would be a scheme in which HARK models are specified natively in such a way that they can be exported to Dol[ARK/o] yaml files directly. But a way to get started moving toward this goal would be simply to add strings to a HARK model articulating the various components of the corresponding Dol* model file. This might seem like makework, but I think working through a few test cases like this would have a number of advantages:
|
OK, you have convinced me this would be a useful exercise. |
I wonder what the right workflow here would be. Suppose that some feature is not in dolang. |
How would these strings differ from the LaTeX in the corresponding notebook files? If they are in dolang syntax, but they contain features that are not currently in dolang, then the correct way to write the string would be unspecified until dolang is expanded.
I see this as very desirable from the standpoint of cleaning up the software design, which I'm still trying to focus on as it's a dense problem that I'm starting to make headway on. |
They would be in Dol* syntax
My sense is that these strings would be a good way to think through how to develop the new syntax that dolang will need to capture the new features we need. They would also provide a ready-made testbed for trying out the new syntax when it is introduced (by going back and correctly specifying the model in the new syntax and then seeing if it is parsed correctly).
|
I think some of what you are getting at with this can be addressed directly in the parameter handling. I've made #660 for this. |
#659 (comment) is a good start. See comment there. |
Given a HARK model, export it to a Dolang yaml file.
The text was updated successfully, but these errors were encountered: