vice.singlezone.enhancement =========================== Type : real number or ```` Default : 1.0 The ratio of the outflow to ISM metallicities. Real numbers will be taken as constant. Functions must accept time in Gyr as the only parameter. This will apply to all elements tracked by the simulation. .. note:: Saving this functional attribute with VICE outputs requires the package dill_, an extension to ``pickle`` in the Python_ standard library. It is recommended that VICE user's install dill_ >= 0.2.0. .. _dill: https://pypi.org/project/dill/ .. _Python: https://docs.python.org/library/ .. seealso:: - vice.singlezone.eta - vice.singlezone.smoothing Example Code ------------ >>> import vice >>> sz = vice.singlezone(name = "example") >>> sz.enhancement = 3 >>> def f(t): if t <= 1: return 5 else: return 1 >>> sz.enhancement = f