Hi,
Without knowning that the variables in the histogram filling have to be arrays with the same length, I passed
a number to the binning (x-axis)and a weight of an array for the y-axis and I got this ambiguos error message:
File "/home/bockjoo/opt/cmsio2/cms/services/T2/ops/Work/AAA/vll-analysis.Coffea2024.6.1/lib/python3.12/site-packages/boost_histogram/_internal/hist.py", line 504, in fill
self._hist.fill(*args_ars, weight=weight_ars, sample=sample_ars) # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: spans must have compatible lengths
I am using:
Python 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:12:24) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hist
>>> hist.__version__
'2.7.3'
This is the script that can demonstrate the issue:
Hi, Without knowning that the variables in the histogram filling have to be arrays with the same length, I passed a number to the binning (x-axis)and a weight of an array for the y-axis and I got this ambiguos error message:
I am using:
This is the script that can demonstrate the issue:
Thanks, Bockjoo