Skip to content

Commit

Permalink
version 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Jun 15, 2021
1 parent 92d75e9 commit ccb8464
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python_package/madflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" madflow """
__version__ = "0.1"
__version__ = "0.9"
10 changes: 7 additions & 3 deletions python_package/madflow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def get_madgraph_path(madpath=None):
madgraph_path = Path(madpath)
if not madgraph_path.exists():
raise ValueError(
f"{madgraph_path} does not exist. "
"Needs a valid path for Madgraph, can be given as env. variable MADGRAPH_PATH"
f"""{madgraph_path} does not exist.
Are you sure Madgraph is installed? https://madflow.readthedocs.io/en/latest/installation.html#mg5-amc-nlo-plugin
MadFlow needs a valid path for Madgraph, can be given as env. variable MADGRAPH_PATH"""
)
# If the path exists, check whether the madgraph executable is there
_ = get_madgraph_exe(madgraph_path)
Expand All @@ -100,7 +101,10 @@ def get_madgraph_exe(madpath=None):
madpath = get_madgraph_path(madpath)
mg5_exe = madpath / "bin/mg5_aMC"
if not mg5_exe.exists():
raise ValueError(f"Madgraph executable could not be found at {mg5_exe}")
raise ValueError(
f"""Madgraph executable could not be found at {mg5_exe},
are you sure Madgraph is installed? https://madflow.readthedocs.io/en/latest/installation.html#mg5-amc-nlo-plugin"""
)
return mg5_exe


Expand Down

0 comments on commit ccb8464

Please sign in to comment.