Skip to content

Commit

Permalink
fix: use uproot3
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jan 27, 2021
1 parent 93524b1 commit 2bfd45e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions notebooks/aghast.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# ROOT file format example\n",
"\n",
"To run this example, you will need `uproot`, which is another SciKit-HEP library."
"To run this example, you will need `uproot3`, which is another SciKit-HEP library."
]
},
{
Expand All @@ -17,7 +17,7 @@
"source": [
"import numpy as np\n",
"import boost_histogram as bh\n",
"import uproot\n",
"import uproot3\n",
"import os\n",
"import matplotlib.pyplot as plt"
]
Expand Down Expand Up @@ -65,7 +65,7 @@
"metadata": {},
"outputs": [],
"source": [
"root_file = uproot.recreate(\"demo_uproot_file.root\")\n",
"root_file = uproot3.recreate(\"demo_uproot_file.root\")\n",
"\n",
"# Uproot automatically converts NumPy style tuples\n",
"root_file[\"hist\"] = h.to_numpy()"
Expand Down Expand Up @@ -111,7 +111,7 @@
}
],
"source": [
"root_file2 = uproot.open(\"demo_uproot_file.root\")\n",
"root_file2 = uproot3.open(\"demo_uproot_file.root\")\n",
"uproot_hist = root_file2[\"hist\"]\n",
"uproot_hist.show()"
]
Expand All @@ -120,7 +120,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This uproot histogram can be converted to NumPy with `.numpy()`:"
"This uproot3 histogram can be converted to NumPy with `.numpy()`:"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"nbsphinx",
"sphinx_copybutton",
],
"examples": ["matplotlib", "xarray", "xhistogram", "netCDF4", "numba", "uproot"],
"examples": ["matplotlib", "xarray", "xhistogram", "netCDF4", "numba", "uproot", "uproot3"],
"dev": ["ipykernel", "cloudpickle", "typer"],
}
extras["all"] = sum(extras.values(), [])
Expand Down

0 comments on commit 2bfd45e

Please sign in to comment.