xnn.gnn.models.matgl_format.matgl_class#

xnn.gnn.models.matgl_format.matgl_class(path)[source]#

The architecture of a MatGL directory ("TensorNet", "MEGNet", …), or None.

Parameters:

path (str or pathlib.Path) – The directory, or its model.json or state.pt.

Returns:

The class of the wrapped model, None when path is not a MatGL directory.

Return type:

str or None