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

Log and make calculations reproducible #17

Open
aleksandra-kim opened this issue Sep 11, 2017 · 1 comment
Open

Log and make calculations reproducible #17

aleksandra-kim opened this issue Sep 11, 2017 · 1 comment
Labels
enhancement New feature or request major

Comments

@aleksandra-kim
Copy link
Member

Original report by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


Logging framework gist here.

Need new input argument for all LCA classes: logpath. This can be either a filepath or a directory (in which case, a log filename is generated). We then need to log the following:

  • Filepaths of all processed arrays for each matrix
  • Hash of each processed array. This is fast, ~one millionth of a second per array.
  • Functional unit
  • Seed value for RNGs if Monte Carlo

Brightway2-data will be updated to include a new datastore for these logfiles, and utility functions to read the logs and construct the necessary arguments to reproduce the calculations.

@aleksandra-kim
Copy link
Member Author

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


Need to generate a random seed ourselves if it isn't explicit. Should be a 32 bit unsigned integer.

@aleksandra-kim aleksandra-kim added major enhancement New feature or request labels Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major
Projects
None yet
Development

No branches or pull requests

1 participant