update first_steps.ipynb
"cell_type": "markdown",
"metadata": {},
"source": [
- "Let's try to find the total number of events contained int the list. This doesn't work:\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "# print(\"Total number of events: {}\".format(len(events_2fhl)))"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "Because Gammapy objects don't redefine properties, that are accessible from the underlying Astropy of Numpy data object.\n",
- "\n",
- "So in this case of course we can directly use the `.table` attribute to find the total number of events:"
+ "You can do *len* over event_2fhl.table to find the total number of events."
]
},
{
