From d50b2177f333293c96873ede9e9a289c72dc9323 Mon Sep 17 00:00:00 2001 From: Robert James Date: Thu, 2 Nov 2023 13:50:51 +1100 Subject: [PATCH] Fix casting issue with updated package versions. --- flamedisx/lz/lz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flamedisx/lz/lz.py b/flamedisx/lz/lz.py index cb7743965..851719684 100644 --- a/flamedisx/lz/lz.py +++ b/flamedisx/lz/lz.py @@ -252,7 +252,7 @@ def add_extra_columns(self, d): g1_gas = self.s2_photon_detection_eff(0.) g2 = fd_nest.calculate_g2(self.gas_field, self.density_gas, self.gas_gap, g1_gas, self.extraction_eff) - d['ces_er_equivalent'] = (d['cs1'] / g1 + d['cs2'] / g2) * self.Wq_keV + d['ces_er_equivalent'] = (d['cs1'] / fd.tf_to_np(g1) + d['cs2'] / fd.tf_to_np(g2)) * self.Wq_keV if 'cs1' in d.columns and 'cs1_acc_curve' not in d.columns: if self.cs1_acc_domain is not None: