Closed peterstangl closed 2 years ago
In the definitions of the translators in wilson/translate/__init__.py, in several functions the value of sectors is used as input for the argument parameters, like e.g. in https://github.com/wilson-eft/wilson/blob/6879cb3a55a5fa509321d067962debc21f021703/wilson/translate/__init__.py#L37-L38 where the definition of the function warsaw_to_warsaw_up is https://github.com/wilson-eft/wilson/blob/6879cb3a55a5fa509321d067962debc21f021703/wilson/translate/smeft.py#L66
wilson/translate/__init__.py
sectors
parameters
warsaw_to_warsaw_up
As long as sectors is None this can remain unnoticed (since None is a valid input for parameters).
None
Oh. Lesson: never use positional args.
This issue has been fixed in PR #104. The bug fix is included in wilson v2.3.2.
In the definitions of the translators in
wilson/translate/__init__.py
, in several functions the value ofsectors
is used as input for the argumentparameters
, like e.g. in https://github.com/wilson-eft/wilson/blob/6879cb3a55a5fa509321d067962debc21f021703/wilson/translate/__init__.py#L37-L38 where the definition of the functionwarsaw_to_warsaw_up
is https://github.com/wilson-eft/wilson/blob/6879cb3a55a5fa509321d067962debc21f021703/wilson/translate/smeft.py#L66As long as
sectors
isNone
this can remain unnoticed (sinceNone
is a valid input forparameters
).