Skip to content

No SimState subclass takes automatically the newly added spin and charge #414

@thomasloux

Description

@thomasloux

Current initialization of subclass of SimState (MDState, all intergrators init, optimizer init, StaticState) don't take spin and charge. So this information is lost and not provided to the model. Currently a fix is proposed for optimizer #413 but this probably does not scale well. Not sure other information will be added in Atoms any time soon.
So either, the same fix is applied to all init function. Or we refactor init function, for instance adding a class method SubClass.from_simstate(state: SimState, **kwargs) where kwargs correspond to SubClass specific variables.
@orionarcher do you have a preference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAPI design discussionsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions