Skip to content

Improving Energy and Force Methods #42

Closed
@shenoynikhil

Description

@shenoynikhil

Currently, energy and force methods per dataset are given by a list of values. In cases where an energy method does not have forces, the value does not exist in the force method list, for instance,

__energy_methods__ = [method_1, method_2, method_3]
# say method_1 does not give forces
__force_methods__ = [method_2, method_3]

This can (possibly) cause complications the same index in the two list corresponds to 2 different things causing indexing during forward pass tricky.

Alternative solution

Have an energy method list and a boolean list for forces which specify if its present or not

# using the same example as above
__energy_methods__ = [method_1, method_2, method_3]
__force_methods__ = [False, True, True]

This will definitely cause multiple downstream complications, therefore needs to be done carefully.

CC. @FNTwin @prtos @S-Thaler

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions