Skip to content

Commit 793b4ad

Browse files
committed
In banner.py, completely remove function plugin_input: cudacpp will use launch_plugin.py instead
See madgraph5/madgraph4gpu#1015 See madgraph5/madgraph4gpu#1016
1 parent 97c5ebf commit 793b4ad

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

madgraph/various/banner.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt):
10061006
self.allowed_value = {}
10071007

10081008
self.default_setup()
1009-
self.plugin_input(finput)
1010-
10111009

10121010
# if input is define read that input
10131011
if isinstance(finput, (file, str, StringIO.StringIO)):
10141012
self.read(finput, **opt)
1015-
1016-
1017-
1018-
1019-
def plugin_input(self, finput=None):
1020-
pass
10211013

10221014

10231015
def default_setup(self):
@@ -2654,26 +2646,6 @@ class RunCard(ConfigFile):
26542646
donewarning = []
26552647
include_as_parameter = []
26562648

2657-
def plugin_input(self, finput):
2658-
2659-
if not finput and not MADEVENT:
2660-
return
2661-
curr_dir = None
2662-
if isinstance(finput, file):
2663-
# expected path to be like "XXXX/Cards/run_card.dat"
2664-
curr_dir = os.path.dirname(os.path.dirname(finput.name))
2665-
elif isinstance(finput, str):
2666-
curr_dir = os.path.dirname(os.path.dirname(finput))
2667-
2668-
if curr_dir:
2669-
if os.path.exists(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
2670-
# expected format {} passing everything as optional argument
2671-
for line in open(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
2672-
if line.startswith('#'):
2673-
continue
2674-
opts = dict(eval(line))
2675-
self.add_param(**opts)
2676-
26772649
@classmethod
26782650
def fill_post_set_from_blocks(cls):
26792651
"""set the post_set function for any parameter defined in a run_block"""

0 commit comments

Comments
 (0)