vice.elements.yields.sneia ========================== Type : real number or The current yield setting for type Ia supernovae (SNe Ia). If this is a real number, it will be interpreted as a constant, metallicity-independent yield. If it is a function, it must accept the metallicity by mass :math:`Z` as the only parameter. These values can be calculated by calling vice.yields.sneia.fractional. .. note:: Modifying yield settings here is equivalent to modifying vice.yields.sneia.settings. .. seealso:: - vice.yields.sneia.settings - vice.yields.sneia.fractional - vice.yields.sneia.single Example Code ------------ >>> import vice >>> vice.elements.Fe.yields.sneia = 0.0017 >>> vice.elements.O.yields.sneia = 0 >>> def z_dep_fe_yield(z): return 0.0017 * (z / 0.014)**0.5 >>> vice.elements.Fe.yields.sneia = z_dep_fe_yield