Add reading from yaml files
"# We now fix the energy axis for the IRF maps (exposure, etc) - (the true enery binning)\n",
"config.datasets.geom.axes.energy_true.min = \"0.02 TeV\"\n",
"config.datasets.geom.axes.energy_true.max = \"20 TeV\"\n",
- "config.datasets.geom.axes.energy.nbins = 20"
+ "config.datasets.geom.axes.energy_true.nbins = 20"
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "analysis_stacked = Analysis(config_stack)"
+ "# Reading yaml file:\n",
+ "config_stacked = AnalysisConfig.read(path=path / \"config_stack.yaml\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "analysis_stacked = Analysis(config_stacked)"
]
},
{
"source": [
"%%time\n",
"\n",
+ "# Read the yaml file from disc\n",
+ "config_joint = AnalysisConfig.read(path=path / \"config_joint.yaml\")\n",
"analysis_joint = Analysis(config_joint)\n",
"\n",
"# select observations:\n",
