brightway-lca / brightway2-calc

The calculation engine for the Brightway2 life cycle assessment framework.
BSD 3-Clause "New" or "Revised" License
14 stars 16 forks source link

Log and make calculations reproducible #17

Open aleksandra-kim opened 7 years ago

aleksandra-kim commented 7 years ago

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:

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 commented 7 years ago

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.