vice.yields.ccsne.settings.save_defaults¶
Saves the current CCSN yield settings as the default values.
Signature: vice.yields.ccsne.settings.save_defaults()
Note
Saving functional yields requires the package dill, an
extension to pickle
in the python standard library. It is
recommended that VICE users install dill >= 0.2.0.
Example Code¶
>>> import vice
>>> vice.yields.ccsne.settings["c"]
0.00236
>>> vice.yields.ccsne.settings["c"] = 0.001
>>> vice.yields.ccsne.settings.save_defaults()
After re-launching the python interpreter:
>>> import vice
>>> vice.yields.ccsne.settings["c"]
0.001