From 8a7bd8523d0fb42e57bb81b38297bc3468a867bc Mon Sep 17 00:00:00 2001 From: JoschD <26184899+JoschD@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:51:57 +0100 Subject: [PATCH] use math instead of np.math --- irnl_rdt_correction/equation_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irnl_rdt_correction/equation_system.py b/irnl_rdt_correction/equation_system.py index ec5e320..9624c2c 100644 --- a/irnl_rdt_correction/equation_system.py +++ b/irnl_rdt_correction/equation_system.py @@ -7,6 +7,7 @@ """ import logging +import math from typing import Dict, List, Sequence, Set, Tuple import numpy as np @@ -354,7 +355,7 @@ def get_elements_integral(rdt: RDT, ip: int, optics: Optics, feeddown: int) -> f iksl_err = 1j*errors_df.loc[elements, f"K{n_mad:d}SL"] k_sum += ((kl_opt + kl_err + iksl_opt + iksl_err) * - (dx_idy**q) / np.math.factorial(q)) + (dx_idy**q) / math.factorial(q)) # note the minus sign before the sum! integral += -sum(np.real(i_pow(lm) * k_sum.to_numpy()) * (side_sign * betax * betay).to_numpy())