diff --git a/.gitignore b/.gitignore index 4846459ff575a5c27b5d1bca1d0303c5a07caa8b..22f3b0532b027c70a94ab40725f0955e243b1997 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,7 @@ */.* # Ignore caches */__pycache__ +# Ignore the py.py cache in case they ran in this directory +py.py # Ignore the *actual* updated model list model_list_updated.txt \ No newline at end of file diff --git a/Coupling/NTGC_9_operators/object_library.py b/Coupling/NTGC_9_operators/object_library.py index c196c695c603a7b32e22a8b0b27c219e194b474e..f6db1c00538646798cc8ce00a58153a289ff35bf 100644 --- a/Coupling/NTGC_9_operators/object_library.py +++ b/Coupling/NTGC_9_operators/object_library.py @@ -265,9 +265,9 @@ class Coupling(UFOBaseClass): if not CTparam: CTparam=param else: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") elif numberOfMatches>1: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") if not CTparam: if x==0: diff --git a/Coupling/NTGC_9_operators/write_param_card.py b/Coupling/NTGC_9_operators/write_param_card.py old mode 100644 new mode 100755 index 72781aa14cd26b8db189f2913ec86fb6c364332f..57a85b061440f522b264b837e691f5b33accc96b --- a/Coupling/NTGC_9_operators/write_param_card.py +++ b/Coupling/NTGC_9_operators/write_param_card.py @@ -1,8 +1,7 @@ -__date__ = "6 March 2020" +__date__ = "3 june 2010" __author__ = 'olivier.mattelaer@uclouvain.be' - class ParamCardWriter(object): header = \ @@ -118,7 +117,10 @@ class ParamCardWriter(object): import cmath from parameters import all_parameters for parameter in all_parameters: - exec("%s = %s" % (parameter.name, parameter.value)) + try: + exec("%s = %s" % (parameter.name, parameter.value)) + except Exception: + pass text = "## Not dependent paramater.\n" text += "## Those values should be edited following analytical the \n" text += "## analytical expression. Some generator could simply ignore \n" diff --git a/Coupling/NTGC_VF/object_library.py b/Coupling/NTGC_VF/object_library.py index c196c695c603a7b32e22a8b0b27c219e194b474e..f6db1c00538646798cc8ce00a58153a289ff35bf 100644 --- a/Coupling/NTGC_VF/object_library.py +++ b/Coupling/NTGC_VF/object_library.py @@ -265,9 +265,9 @@ class Coupling(UFOBaseClass): if not CTparam: CTparam=param else: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") elif numberOfMatches>1: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") if not CTparam: if x==0: diff --git a/Coupling/NTGC_VF/write_param_card.py b/Coupling/NTGC_VF/write_param_card.py old mode 100644 new mode 100755 index 72781aa14cd26b8db189f2913ec86fb6c364332f..57a85b061440f522b264b837e691f5b33accc96b --- a/Coupling/NTGC_VF/write_param_card.py +++ b/Coupling/NTGC_VF/write_param_card.py @@ -1,8 +1,7 @@ -__date__ = "6 March 2020" +__date__ = "3 june 2010" __author__ = 'olivier.mattelaer@uclouvain.be' - class ParamCardWriter(object): header = \ @@ -118,7 +117,10 @@ class ParamCardWriter(object): import cmath from parameters import all_parameters for parameter in all_parameters: - exec("%s = %s" % (parameter.name, parameter.value)) + try: + exec("%s = %s" % (parameter.name, parameter.value)) + except Exception: + pass text = "## Not dependent paramater.\n" text += "## Those values should be edited following analytical the \n" text += "## analytical expression. Some generator could simply ignore \n" diff --git a/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/object_library.py b/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/object_library.py index c196c695c603a7b32e22a8b0b27c219e194b474e..f6db1c00538646798cc8ce00a58153a289ff35bf 100644 --- a/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/object_library.py +++ b/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/object_library.py @@ -265,9 +265,9 @@ class Coupling(UFOBaseClass): if not CTparam: CTparam=param else: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") elif numberOfMatches>1: - raise UFOError, "UFO does not support yet more than one occurence of CTParameters in the couplings values." + raise UFOError("UFO does not support yet more than one occurence of CTParameters in the couplings values.") if not CTparam: if x==0: diff --git a/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/write_param_card.py b/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/write_param_card.py old mode 100644 new mode 100755 index 72781aa14cd26b8db189f2913ec86fb6c364332f..57a85b061440f522b264b837e691f5b33accc96b --- a/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/write_param_card.py +++ b/VLQ/eVLQ_S012_diagonalCKM_5FNS_only3rd_NLO_UFO/write_param_card.py @@ -1,8 +1,7 @@ -__date__ = "6 March 2020" +__date__ = "3 june 2010" __author__ = 'olivier.mattelaer@uclouvain.be' - class ParamCardWriter(object): header = \ @@ -118,7 +117,10 @@ class ParamCardWriter(object): import cmath from parameters import all_parameters for parameter in all_parameters: - exec("%s = %s" % (parameter.name, parameter.value)) + try: + exec("%s = %s" % (parameter.name, parameter.value)) + except Exception: + pass text = "## Not dependent paramater.\n" text += "## Those values should be edited following analytical the \n" text += "## analytical expression. Some generator could simply ignore \n" diff --git a/py3compat.py b/py3compat.py index 7b650f4b31c943ab273a1f9cfe747ecc229bfdf6..c3347fa9b35be3601a05f5261c9626f6ce47193a 100755 --- a/py3compat.py +++ b/py3compat.py @@ -7,6 +7,8 @@ def test_source_code_compatible(code_data): except SyntaxError as exc: return False +print('Checking python3 compatibility of models') + import glob module_list = glob.glob('*/*/*.py') model = None