Skip to content

Commit

Permalink
Fix casting issue with updated package versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsjames committed Nov 2, 2023
1 parent 9099884 commit d50b217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flamedisx/lz/lz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d50b217

Please sign in to comment.