set_module

metpy.constants.set_module(globls)[source]

Set the module for all functions in __all__.

This sets the __module__ attribute of all items within the __all__ list for the calling module.

This supports our hoisting of functions out of individual modules, which are considered implementation details, into the namespace of the top-level subpackage.

Parameters

globls (Dict[str, object]) – Mapping of all global variables for the module. This contains all needed python special (“dunder”) variables needed to be modified.