Source code for yt.fields.my_plugin_fields
from .field_plugin_registry import register_field_plugin
from .local_fields import LocalFieldInfoContainer
# Empty FieldInfoContainer
my_plugins_fields = LocalFieldInfoContainer(None, [], None)
[docs]
@register_field_plugin
def setup_my_plugins_fields(registry, ftype="gas", slice_info=None):
# fields end up inside this container when added via add_field in
# my_plugins.py. See yt.funcs.enable_plugins to see how this is set up.
registry.update(my_plugins_fields)