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

allow input fields to not be in the output #58

gdementen opened this issue Feb 13, 2014 · 2 comments

allow input fields to not be in the output #58

gdementen opened this issue Feb 13, 2014 · 2 comments


Copy link

It might be a good idea to rework the way to declare fields:

    - earny: float
    - wstatus: int
    - wzas: int
    - yob: int
    - cscar: int
    - csw: float
    - cswl1: float
@ghost ghost assigned gdementen Feb 13, 2014
Copy link
Member Author

Another option would be to make the saving to hdf5 step an explicit function, so that the modeller can choose when and what to save.

Copy link
Member Author

Basically, we get two different options:

  • do it in the field definition (like above or output=False in the current way to defined them)
  • explicit step (hdf(dump())

explicit step seems better in the long term but has more implications because there might not be a "user" .h5 file at all.

In either case, we cannot rely anymore on lag fields being present in the hdf file (for lags > 1 period), so we will need to store them elsewhere, in either a system table in the same file, or in another file entirely. It is probably cleaner to use another file entirely to not pollute the user file with something he does not care about.

By the way, only saving the fields which are not manually saved by the user seem like a bad idea, because it would be too fragile: the user could save it at a different time than what we need (eg before the field is updated within the period), or only under some condition... So, we will just save them in the system file (or table within normal hdf file) and close our eyes on potential duplication with what the user saves...

@gdementen gdementen added this to the 0.10 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant