vice.yields.ccsne.settings.todict¶
Returns the CCSN yield settings as a dictionary.
Signature: vice.yields.ccsne.settings.todict()
Note
Modifications to the dictionary returned by this function will not affect the global yield settings.
Note
Python dictionaries are case-sensitive, and are thus less flexible than this class.
Example Code¶
>>> import vice
>>> example = vice.yields.ccsne.settings.todict()
>>> example["c"]
0.00236
>>> example["C"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'C'
>>> example["c"] = "not a yield setting"
>>> example["c"]
"not a yield setting"
>>> vice.yields.ccsne.settings["c"]
0.00236