We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f830b commit 7ba046bCopy full SHA for 7ba046b
torch_sim/state.py
@@ -885,12 +885,13 @@ def concatenate_states(
885
886
# Collect per-atom properties
887
for prop, val in get_attrs_for_scope(state, "per-atom"):
888
- # if hasattr(state, prop):
+ if prop == "system_idx":
889
+ # skip system_idx, it will be handled below
890
+ continue
891
per_atom_tensors[prop].append(val)
892
893
# Collect per-system properties
894
for prop, val in get_attrs_for_scope(state, "per-system"):
895
per_system_tensors[prop].append(val)
896
897
# Update system indices
0 commit comments