From 46afee693fa32b651a0d41373eae3912f59f8ecb Mon Sep 17 00:00:00 2001 From: juacrumar Date: Wed, 10 Jan 2024 11:32:03 +0100 Subject: [PATCH] fix issue #26 --- python_package/madflow/scripts/madflow_exec.py | 3 +++ readme.md | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python_package/madflow/scripts/madflow_exec.py b/python_package/madflow/scripts/madflow_exec.py index 35761d9..70f580b 100755 --- a/python_package/madflow/scripts/madflow_exec.py +++ b/python_package/madflow/scripts/madflow_exec.py @@ -331,7 +331,10 @@ def madflow_main(args=None, quick_return=False): compile_op(output_path) if args.dry_run: return None, None, None + matrices, models = _import_matrices(output_path) + if len(matrices) == 0: + raise ValueError("No madgraph process generated, please check your input string") if args.no_pdf: initial_flavours = [None] diff --git a/readme.md b/readme.md index 42912bb..a1ac6cc 100644 --- a/readme.md +++ b/readme.md @@ -60,14 +60,15 @@ tar xfz MG5_aMC_v3.1.0.tar.gz export MADGRAPH_PATH=${PWD}/MG5_aMC_v3_1_0 ``` -#### LHAPDF +#### PDF grids While `LHAPDF` is not strictly necessary to use the `madflow` library or run any of the scripts, having access to the `lhapdf` python wrapper can be convenient in order to manage the different PDFsets. Please install the latest version from the LHAPDF [site](https://lhapdf.hepforge.org/). -Otherwise, if your installed version of `pdfflow` is equal or greater than `1.2.1`, -you can manually install the [PDF sets](https://lhapdf.hepforge.org/pdfsets.html) in a suitable directory +Otherwise, if your installed version of `pdfflow` is equal or greater than `1.2.2`, +it includes the [lhapdf-management](https://github.com/scarlehoff/lhapdf_management) scripts suite and LHAPDF should not be needed. +You can also manually install the [PDF sets](https://lhapdf.hepforge.org/pdfsets.html) in a suitable directory and ensure that either the `PDFFLOW_DATA_PATH` or `LHAPDF_DATA_PATH` environment variables are pointing to it. You can check your installed version of `pdfflow` with: `python -c 'import pdfflow ; print(pdfflow.__version__);'`