Skip to content
Snippets Groups Projects
Commit da8ff75e authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Fix mean xsec performance

parent 99b0d713
No related branches found
No related tags found
1 merge request!10Single energy runs
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
......@@ -259,7 +259,7 @@ class GiBUUOutput:
@property
def mean_xsec(self):
if self.flux_data is None:
return self._event_xsec(self.arrays)
return lambda energy: self.energy_max
root_tupledata = self.arrays
energies = np.array(root_tupledata.lepIn_E)
weights = self._event_xsec(root_tupledata)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment