Skip to content

[Feature Request] dpmodel and pt fitting should export several methods #3273

@njzjz

Description

@njzjz

Summary

Fitting should add methods to get fparam, aparam, and sel_types.

Detailed Description

Add these methods so the model can get it.

def get_dim_fparam(self) -> int:
"""Get the number (dimension) of frame parameters of this atomic model."""
return 0
def get_dim_aparam(self) -> int:
"""Get the number (dimension) of atomic parameters of this atomic model."""
return 0
def get_sel_type(self) -> List[int]:
"""Get the selected atom types of this model.
Only atoms with selected atom types have atomic contribution
to the result of the model.
If returning an empty list, all atom types are selected.
"""
return []

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions