Skip to content

Commit

Permalink
fix issue #26
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Jan 10, 2024
1 parent 430c7aa commit 46afee6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions python_package/madflow/scripts/madflow_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__);'`
Expand Down

0 comments on commit 46afee6

Please sign in to comment.