Skip to content

Commit

Permalink
In banner.py, completely remove function plugin_input: cudacpp will u…
Browse files Browse the repository at this point in the history
…se launch_plugin.py instead

This reverts most of commit 8d9f3f1

See madgraph5/madgraph4gpu#1015
See madgraph5/madgraph4gpu#1016
  • Loading branch information
valassi committed Oct 8, 2024
1 parent 97c5ebf commit f7959d2
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions madgraph/various/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt):
self.allowed_value = {}

self.default_setup()
self.plugin_input(finput)


# if input is define read that input
if isinstance(finput, (file, str, StringIO.StringIO)):
self.read(finput, **opt)




def plugin_input(self, finput=None):
pass


def default_setup(self):
Expand Down Expand Up @@ -2654,26 +2646,6 @@ class RunCard(ConfigFile):
donewarning = []
include_as_parameter = []

def plugin_input(self, finput):

if not finput and not MADEVENT:
return
curr_dir = None
if isinstance(finput, file):
# expected path to be like "XXXX/Cards/run_card.dat"
curr_dir = os.path.dirname(os.path.dirname(finput.name))
elif isinstance(finput, str):
curr_dir = os.path.dirname(os.path.dirname(finput))

if curr_dir:
if os.path.exists(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
# expected format {} passing everything as optional argument
for line in open(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
if line.startswith('#'):
continue
opts = dict(eval(line))
self.add_param(**opts)

@classmethod
def fill_post_set_from_blocks(cls):
"""set the post_set function for any parameter defined in a run_block"""
Expand Down

0 comments on commit f7959d2

Please sign in to comment.