Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
ef82e982
Commit
ef82e982
authored
Aug 11, 2020
by
Zach Marshall
Browse files
Using is_tarfile instead of relying on name (thanks Giordon)
parent
fb4ed1ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Generators/MadGraphControl/share/common/SUSY_SimplifiedModel_PostInclude.py
View file @
ef82e982
...
...
@@ -67,8 +67,8 @@ else:
modify_param_card
(
process_dir
=
process_dir
,
params
=
{
'MASS'
:
masses
,
'DECAY'
:
decays
})
param_card_old
=
process_dir
+
'/Cards/param_card.dat'
ktdurham
=
-
1
if
'.tar'
in
runArgs
.
inputGeneratorFile
or
'.tgz'
in
runArgs
.
inputGeneratorFile
:
import
tarfile
if
tarfile
.
is_tarfile
(
runArgs
.
inputGeneratorFile
):
myTarball
=
tarfile
.
open
(
runArgs
.
inputGeneratorFile
)
myEvents
=
None
for
afile
in
myTarball
.
getnames
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment