Skip to content

Commit

Permalink
[smeft2] in CODEGEN, add a few formatting post-fixes for clang-format…
Browse files Browse the repository at this point in the history
… in smeft (NB: THESE BREAK OTHER PROCESSES!)

The "e+0" to "e + 0" fix breaks exponents elsehwre in eemumu/ggtt*...
  • Loading branch information
valassi committed Apr 6, 2023
1 parent 014ccfb commit 3cef7bd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ def write_set_parameters(self, params):
res = res.replace('\n','\n ')
res = res.replace('( - ','( -') # post-fix for susy
res = res.replace(', - ',', -') # post-fix for susy
res = res.replace('e+','e + ') # post-fix for smeft
res = res.replace('e-','e - ') # post-fix for smeft
res = res.replace(', - ',', -') # post-fix for smeft
return res

# AV - new method (merging write_parameters and write_set_parameters)
Expand Down Expand Up @@ -741,6 +744,9 @@ def write_hardcoded_parameters(self, params):
res = res.replace(' ;',';')
res = res.replace('= - ','= -') # post-fix for susy
res = res.replace('( - ','( -') # post-fix for susy
res = res.replace('e+','e + ') # post-fix for smeft
res = res.replace('e-','e - ') # post-fix for smeft
res = res.replace(', - ',', -') # post-fix for smeft
###print(res); assert(False)
return res

Expand Down

0 comments on commit 3cef7bd

Please # to comment.