Skip to content

Commit

Permalink
Merge pull request #491 from Sinclert/docker-env-madgraph-path
Browse files Browse the repository at this point in the history
Define MadGraph path via env.
  • Loading branch information
Sinclert authored Oct 15, 2021
2 parents d7108e8 + 3df19f0 commit 2ad03d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import logging\n",
"import numpy as np\n",
"\n",
Expand Down Expand Up @@ -69,7 +70,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Please enter here the path to your MG5 root directory:"
"Please enter here the environment variable pointing to your MG5 installation folder."
]
},
{
Expand All @@ -78,7 +79,7 @@
"metadata": {},
"outputs": [],
"source": [
"mg_dir = \"/madminer/software/MG5_aMC_v2_9_4\""
"mg_dir = os.getenv(\"MG_FOLDER_PATH\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import logging\n",
"import numpy as np\n",
"\n",
Expand Down Expand Up @@ -68,7 +69,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Please enter here the path to your MG5 root directory. This notebook assumes that you installed Delphes and Pythia through MG5."
"Please enter here the environment variable pointing to your MG5 installation folder."
]
},
{
Expand All @@ -77,7 +78,7 @@
"metadata": {},
"outputs": [],
"source": [
"mg_dir = \"/madminer/software/MG5_amC_v2_9_4/\""
"mg_dir = os.getenv(\"MG_FOLDER_PATH\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"\n",
"madminer_src_path = \"/madminer/software/MG5_aMC_v2_9_4/\"\n",
"sys.path.append(madminer_src_path)\n",
"\n",
"import logging\n",
"import numpy as np\n",
"import matplotlib\n",
Expand Down Expand Up @@ -419,7 +414,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In the next step, we initialize the `InformationGeoemtry` class using this input data. Using the function `information_from_grid()`, the provided grid is interpolated using a piecewise linear function and the information can be calculated at every point. "
"In the next step, we initialize the `InformationGeometry` class using this input data. Using the function `information_from_grid()`, the provided grid is interpolated using a piecewise linear function and the information can be calculated at every point."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import logging\n",
"import numpy as np\n",
"\n",
Expand All @@ -53,7 +54,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Please enter here the path to your MG5 root directory."
"Please enter here the environment variable pointing to your MG5 installation folder."
]
},
{
Expand All @@ -62,7 +63,7 @@
"metadata": {},
"outputs": [],
"source": [
"mg_dir = \"/madminer/software/MG5_amC_v2_9_4/\""
"mg_dir = os.getenv(\"MG_FOLDER_PATH\")"
]
},
{
Expand Down

0 comments on commit 2ad03d2

Please sign in to comment.