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?
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?