From d209de006ebce046cdb480976362742c3b726568 Mon Sep 17 00:00:00 2001 From: Charles MOUSSA Date: Tue, 19 Nov 2024 14:10:45 +0100 Subject: [PATCH] changing shift interval --- pyqtorch/differentiation/gpsr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtorch/differentiation/gpsr.py b/pyqtorch/differentiation/gpsr.py index 13c76488..f7c1ca03 100644 --- a/pyqtorch/differentiation/gpsr.py +++ b/pyqtorch/differentiation/gpsr.py @@ -212,7 +212,7 @@ def multi_gap_shift( spectral_gaps = spectral_gaps.to(device=device) PI = torch.tensor(torch.pi, dtype=dtype) shifts = shift_prefac * torch.linspace( - PI / 2.0 - PI / 5.0, PI / 2.0 + PI / 5.0, n_eqs, dtype=dtype + PI / 2.0 - PI / 4.0, PI / 2.0 + PI / 5.0, n_eqs, dtype=dtype ) shifts = shifts.to(device=device)