From 0d50850dd581febee08ac49a6565d2149e2c5053 Mon Sep 17 00:00:00 2001 From: beykyle Date: Tue, 15 Jul 2025 14:02:54 -0400 Subject: [PATCH 1/2] missing factor of 2 --- src/rose/elastic_emulator.py | 12 ------------ src/rose/utility.py | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 src/rose/elastic_emulator.py diff --git a/src/rose/elastic_emulator.py b/src/rose/elastic_emulator.py deleted file mode 100644 index 7683fd3e..00000000 --- a/src/rose/elastic_emulator.py +++ /dev/null @@ -1,12 +0,0 @@ -import numpy as np -from numba import jit -from numba.experimental import jitclass - - -dtype = [] - - -@jitclass(dtype) -class ElasticScatterEmulator: - def __init__(self): - pass diff --git a/src/rose/utility.py b/src/rose/utility.py index 056996c8..59d0f6d9 100644 --- a/src/rose/utility.py +++ b/src/rose/utility.py @@ -74,7 +74,7 @@ def xs_calc_neutral( xst += (l + 1) * (1 - np.real(splus[l])) + l * (1 - np.real(sminus[l])) dsdo = (np.absolute(a) ** 2 + np.absolute(b) ** 2) * 10 - Ay = np.imag(a.conj() * b) * 10 / dsdo + Ay = 2*np.imag(a.conj() * b) * 10 / dsdo xsrxn *= 10 * np.pi / k**2 xst *= 10 * 2 * np.pi / k**2 From ee080f5c9007a8c55d49aeec85ca94cf9426c267 Mon Sep 17 00:00:00 2001 From: beykyle Date: Tue, 15 Jul 2025 18:03:52 +0000 Subject: [PATCH 2/2] Apply automatic changes --- src/rose/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rose/utility.py b/src/rose/utility.py index 59d0f6d9..10516665 100644 --- a/src/rose/utility.py +++ b/src/rose/utility.py @@ -74,7 +74,7 @@ def xs_calc_neutral( xst += (l + 1) * (1 - np.real(splus[l])) + l * (1 - np.real(sminus[l])) dsdo = (np.absolute(a) ** 2 + np.absolute(b) ** 2) * 10 - Ay = 2*np.imag(a.conj() * b) * 10 / dsdo + Ay = 2 * np.imag(a.conj() * b) * 10 / dsdo xsrxn *= 10 * np.pi / k**2 xst *= 10 * 2 * np.pi / k**2