Dump functions for reproducibility
Maybe here we can think about systematically saving the source files before the Cut
objects are created in a subdirectory of the output folder (e.g. output/analysis_v3/includes
) and import the functions from this folder, for reproducibility.
The field "src_file"
would then correspond to the includes/
folder and the appropriate functions would be saved in the pickle
file.
If one finally wants to reproduce an analysis version, it's sufficient to load the corresponding pickle file that will load the exact same configuration used to produce the analysis.
Originally posted by @mmarchegiani in https://github.com/PocketCoffea/PocketCoffea/pull/7#discussion_r848538925