Skip to content

Commit c61e420

Browse files
var naming
1 parent 225329b commit c61e420

File tree

1 file changed

+3
-3
lines changed
  • libra_toolbox/neutron_detection/activation_foils

1 file changed

+3
-3
lines changed

libra_toolbox/neutron_detection/activation_foils/compass.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ def compute_detection_efficiency(
264264

265265
calibrated_bin_bedges = np.polyval(calibration_coeffs, bin_edges)
266266

267-
areas = get_multipeak_area(
267+
nb_counts_measured = get_multipeak_area(
268268
hist,
269269
calibrated_bin_bedges,
270270
self.check_source.nuclide.energy,
271271
search_width=search_width,
272272
)
273273

274-
nb_counts_measured = np.array(areas)
275-
nb_counts_measured_err = np.sqrt(np.array(areas))
274+
nb_counts_measured = np.array(nb_counts_measured)
275+
nb_counts_measured_err = np.sqrt(nb_counts_measured)
276276

277277
act_expec = self.check_source.get_expected_activity(self.start_time)
278278
gamma_rays_expected = act_expec * (

0 commit comments

Comments
 (0)