Skip to content

Commit f021aa9

Browse files
error for force in slha file name
1 parent 494e354 commit f021aa9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

smodels/tools/pythia8Wrapper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ def run( self, slhaFile: str, lhefile: Union[str,None]=None,
174174
:returns: List of cross sections
175175
176176
"""
177+
if "force" in slhaFile:
178+
## there is a bug in pythia8 <= 8316
179+
import re
180+
num = int(''.join(re.findall(r'\d+', self.version)))
181+
if num <= 8316:
182+
logger.error ( f"the word 'force' appears in your slha file path {slhaFile}, and you are using pythia8 <= 8316. This triggers a pythia bug, consider upgrading pythia8 or avoid paths with 'force' in its name" )
183+
sys.exit()
177184
if self.maycompile:
178185
self.checkInstallation( compile = True )
179186
# Change pythia configuration file, if defined:

0 commit comments

Comments
 (0)