Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/chromo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def cross_section(self, kin=None, max_info=False):
kin3.p2 = component
# this calls cross_section recursively, which is fine
cross_section._mul_radd(
fraction, self._cross_section(kin3, max_info=max_info)
fraction, self.cross_section(kin3, max_info=max_info)
)
return cross_section
return self._cross_section(kin, max_info=max_info)
Expand Down Expand Up @@ -1010,6 +1010,10 @@ def _temporary_kinematics(self, kin):
yield
else:
prev = copy.copy(self.kinematics)
self.kinematics = kin
self._check_kinematics(kin)
self._kinematics = kin
self._set_kinematics(kin)
yield
self.kinematics = prev
# _check_kinematics not necessary because it's the old kinematics
self._kinematics = prev
self._set_kinematics(prev)
Loading