Skip to content

Commit c4f8ee0

Browse files
committed
add last_permutation to system attributes
1 parent 4781bc4 commit c4f8ee0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/tutorials/hybrid_swap_tutorial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import torch
3838
import torch_sim as ts
3939
from mace.calculators.foundations_models import mace_mp
40+
from torch_sim.integrators.md import MDState
4041
from torch_sim.models.mace import MaceModel
4142

4243
# Initialize the mace model
@@ -104,6 +105,7 @@ class HybridSwapMCState(ts.integrators.MDState):
104105
"""
105106

106107
last_permutation: torch.Tensor
108+
_system_attributes = (*MDState._system_attributes, "last_permutation") # noqa: SLF001
107109

108110

109111
# %% [markdown]

0 commit comments

Comments
 (0)