Skip to content

Commit 3468b94

Browse files
committed
remove factor of -1 in z coordinate
1 parent 1d0baaa commit 3468b94

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gpsr/beams.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ def forward(self) -> tuple[ParticleBeam, torch.Tensor]:
251251

252252
entropy = -torch.mean(log_p - log_q)
253253

254-
x[:, 4] *= -1.0 # [TO DO] why is sign wrong?
255-
256254
coords = torch.randn(len(x), 6).to(x) * 1e-7
257255
coords[:, : x.shape[1]] = x
258256
coords = torch.cat(

0 commit comments

Comments
 (0)