Closed matthewfeickert closed 1 year ago
Hm @amangoel185 I'm seeing different behavior than you (the opposite actually). For my "*before" I'm using my pipx
install
$ pipx upgrade uproot-browser
uproot-browser is already at latest version 0.4.0 (location: /home/feickert/.local/pipx/venvs/uproot-browser)
$ /home/feickert/.local/pipx/venvs/uproot-browser/bin/uproot-browser browse ~/.local/skhepdata/uproot-Event.root
and getting a ValueError: range of axis is zero
being raised from NumPy for your fBits
example.
My "after" is my local build
$ python -m pip install --upgrade -e .
$ pyenv which uproot-browser
/home/feickert/.pyenv/versions/uproot-browser-dev/bin/uproot-browser
$ uproot-browser browse ~/.local/skhepdata/uproot-Event.root
which is actually showing a plot for fBits
Ah curious, I think it was the cached dependencies. I built it from scratch and now it's working!
Thanks!
Resolves #53.
In the event that a branch is empty, instead of catching the
Exception
and displaying the frames in the panel, raise aValueError
and catch that to display in the panel that the branch is 'EMPTY'.Before
When opening a branch that is empty get a traceback from the caught exception.
After
When opening a branch that is empty get text of "{branch name} is EMPTY" (e.g. "largeRjet_D2 is EMPTY").