Skip to content

Commit a0fedff

Browse files
committed
Small change in xsecResummino
1 parent 3b27d32 commit a0fedff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smodels/tools/xsecResummino.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from __future__ import print_function
1212
import sys
13-
import os, copy
13+
import os
1414
current = os.getcwd()
1515
sys.path.append(current)
1616

@@ -515,9 +515,9 @@ def create_routine_files(self, order : int, slha_folder_name : str):
515515

516516
#remove the .slha
517517
if not os.path.isfile(slha_folder):
518-
slha_file_name = slha[:-5]
518+
slha_file_name = os.path.splitext(slha)[0]
519519
else:
520-
slha_file_name = name[:-5]
520+
slha_file_name = os.path.splitext(name)[0]
521521

522522

523523
resummino_in_file = os.path.join(self.resummino_in,f"resummino_{slha_file_name}.in")

0 commit comments

Comments
 (0)