Skip to content

pickle-support with athena --CA

Walter Lampl requested to merge wlampl/athena:CAPickleSupport into master

This MR brings support for the --config-only argument and running from a pickled ComponentAccumulator to athena --CA

With this, one can dump the result of the configuration process to a pickle file like

athena --CA --config-only=myConfig.pkl favoriteConfig.py

and the run from the pickle file:

athena --CA myConfig.pkl

This is achieved by intercepting the ComponentAccumulator.run() method via the environment variable PICKLECAFILE. If this variable is set, the run method actually doesn't run but stores the ComponentAccumlator to this file.

Merge request reports