modify_namespace

hoomd.logging.modify_namespace(cls, namespace=None)

Modify a class’s namespace to a manually assigned one.

Parameters:
  • cls (type or tuple[str]) – The class to modify the namespace of or the namespace itself. When passing a namespace (a tuple of strings), the function can be used as a decorator.

  • namespace (tuple [str ], optional) – The namespace to change the class’s namespace to.

Warning

This will only persist for the current class. All subclasses will have the standard namespace assignment.