From 8afec94a1b0c061e69de500145b5e87ae46631e9 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 12 Jun 2024 08:40:07 +0200 Subject: [PATCH] Change float to double --- pyvisgen/simulation/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvisgen/simulation/scan.py b/pyvisgen/simulation/scan.py index 41a440b..8163427 100644 --- a/pyvisgen/simulation/scan.py +++ b/pyvisgen/simulation/scan.py @@ -145,7 +145,7 @@ def jinc(x): array value of jinc function at x """ - jinc = torch.ones(x.shape, device=x.device).float() + jinc = torch.ones(x.shape, device=x.device).double() jinc[x != 0] = 2 * bessel_j1(x[x != 0]) / x[x != 0] return jinc