Skip to content

Commit 8805ee0

Browse files
committed
fix: fix orb test due to half_supercell flag issue
1 parent 0424593 commit 8805ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_sim/models/orb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def forward(self, state: ts.SimState | StateDict) -> dict[str, torch.Tensor]:
394394
sim_state = sim_state.to(self._device)
395395

396396
half_supercell = (
397-
torch.min(sim_state.volume) > 1000
397+
sim_state.pbc and torch.min(sim_state.volume) > 1000
398398
if self._half_supercell is None
399399
else self._half_supercell
400400
)

0 commit comments

Comments
 (0)