Skip to content

Commit 2bfd45e

Browse files
committed
fix: use uproot3
1 parent 93524b1 commit 2bfd45e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

notebooks/aghast.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# ROOT file format example\n",
88
"\n",
9-
"To run this example, you will need `uproot`, which is another SciKit-HEP library."
9+
"To run this example, you will need `uproot3`, which is another SciKit-HEP library."
1010
]
1111
},
1212
{
@@ -17,7 +17,7 @@
1717
"source": [
1818
"import numpy as np\n",
1919
"import boost_histogram as bh\n",
20-
"import uproot\n",
20+
"import uproot3\n",
2121
"import os\n",
2222
"import matplotlib.pyplot as plt"
2323
]
@@ -65,7 +65,7 @@
6565
"metadata": {},
6666
"outputs": [],
6767
"source": [
68-
"root_file = uproot.recreate(\"demo_uproot_file.root\")\n",
68+
"root_file = uproot3.recreate(\"demo_uproot_file.root\")\n",
6969
"\n",
7070
"# Uproot automatically converts NumPy style tuples\n",
7171
"root_file[\"hist\"] = h.to_numpy()"
@@ -111,7 +111,7 @@
111111
}
112112
],
113113
"source": [
114-
"root_file2 = uproot.open(\"demo_uproot_file.root\")\n",
114+
"root_file2 = uproot3.open(\"demo_uproot_file.root\")\n",
115115
"uproot_hist = root_file2[\"hist\"]\n",
116116
"uproot_hist.show()"
117117
]
@@ -120,7 +120,7 @@
120120
"cell_type": "markdown",
121121
"metadata": {},
122122
"source": [
123-
"This uproot histogram can be converted to NumPy with `.numpy()`:"
123+
"This uproot3 histogram can be converted to NumPy with `.numpy()`:"
124124
]
125125
},
126126
{

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"nbsphinx",
5858
"sphinx_copybutton",
5959
],
60-
"examples": ["matplotlib", "xarray", "xhistogram", "netCDF4", "numba", "uproot"],
60+
"examples": ["matplotlib", "xarray", "xhistogram", "netCDF4", "numba", "uproot", "uproot3"],
6161
"dev": ["ipykernel", "cloudpickle", "typer"],
6262
}
6363
extras["all"] = sum(extras.values(), [])

0 commit comments

Comments
 (0)