vice.yields.sneia.settings.todict¶
Returns the SN Ia yield settings dataframe as a dictionary.
Signature: vice.yields.sneia.settings.todict()
Note
Modifications to the dictionary returned by this function will not affect the global yield settings.
Note
Python dictionaries are case-insensitive, and are thus less flexible than this class.
Example¶
>>> import vice
>>> example = vice.yields.sneia.settings.todict()
>>> example["c"]
5.74e-06
>>> 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.sneia.settings["c"]
5.74e-06