Closed bdalena closed 1 year ago
Hello,
Changing the interface of an existing function is discouraged because it is not backward compatible, what I can propose is to provide another function that would output the quantity you need. Would that be ok for you?
Cheers
Hi,
Yes of course, you are the code master and it is up to you to chose your best way to modify it. We didn't want to duplicate lines of the code, but maybe the function can be split in more functions which can be called by two differents methods one for lifetime and the other one to compute the local Piwinski rate for touschek scattering.
Ciao Mihail & Barbara
Solved in #624
Hello,
In order to compute the local Piwinski scattering rate we would like to have the function get_lifetime modified as follow:
def get_lifetime(ring, emity, bunch_curr, emitx=None, sigs=None, sigp=None, zn=None, momap=None, refpts=None, **kwargs): """Touschek lifetime calculation
Thanks in advance Mihail Miceski and Barbara Dalena