Skip to content

Commit 50fa99d

Browse files
committed
make md_atom_attributes private
1 parent 5e181ed commit 50fa99d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torch_sim/optimizers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
MdFlavor = Literal["vv_fire", "ase_fire"]
3434
vv_fire_key, ase_fire_key = get_args(MdFlavor)
3535

36-
md_atom_attributes = SimState._atom_attributes | {"forces", "velocities"} # noqa: SLF001
36+
_md_atom_attributes = SimState._atom_attributes | {"forces", "velocities"} # noqa: SLF001
3737
_fire_system_attributes = (
3838
SimState._system_attributes # noqa: SLF001
3939
| DeformGradMixin._system_attributes # noqa: SLF001
@@ -524,7 +524,7 @@ class FireState(SimState):
524524
alpha: torch.Tensor
525525
n_pos: torch.Tensor
526526

527-
_atom_attributes = md_atom_attributes
527+
_atom_attributes = _md_atom_attributes
528528
_system_attributes = (
529529
SimState._system_attributes # noqa: SLF001
530530
| {
@@ -745,7 +745,7 @@ class UnitCellFireState(SimState, DeformGradMixin):
745745
alpha: torch.Tensor
746746
n_pos: torch.Tensor
747747

748-
_atom_attributes = md_atom_attributes
748+
_atom_attributes = _md_atom_attributes
749749
_system_attributes = _fire_system_attributes
750750
_global_attributes = _fire_global_attributes
751751

@@ -1037,7 +1037,7 @@ class FrechetCellFIREState(SimState, DeformGradMixin):
10371037
alpha: torch.Tensor
10381038
n_pos: torch.Tensor
10391039

1040-
_atom_attributes = md_atom_attributes
1040+
_atom_attributes = _md_atom_attributes
10411041
_system_attributes = _fire_system_attributes
10421042
_global_attributes = _fire_global_attributes
10431043

0 commit comments

Comments
 (0)