LoggerCategories

class hoomd.logging.LoggerCategories(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Flag

Enum that marks all accepted logger types.

The attribute names of LoggerCategories are valid strings for the category argument of Logger constructor and the log() method.

scalar

float or int object.

sequence

Sequence (e.g. list, tuple, numpy.ndarray) of numbers of the same type.

string

A single Python str object.

strings

A sequence of Python str objects.

object

Any Python object outside a sequence, string, or scalar.

angle

Per-angle quantity.

bond

Per-bond quantity.

constraint

Per-constraint quantity.

dihedral

Per-dihedral quantity.

improper

Per-improper quantity.

pair

Per-pair quantity.

particle

Per-particle quantity.

ALL

A combination of all other categories.

NONE

Represents no category.

classmethod any(categories=None)

Return a LoggerCategories enum representing any of the categories.

Parameters:

categories (list [str ] or list [LoggerCategories]) – A list of str or LoggerCategories objects that should be represented by the returned LoggerCategories object.

Returns:

the LoggerCategories object that represents any of the given categories.

Return type:

LoggerCategories