We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hist(bh.Histogram(...), name="something").name
Describe the bug
Passing a bh.Histogram object into hist.Hist with the name keyword argument does not work for name.
bh.Histogram
hist.Hist
name
Steps to reproduce
In [1]: import hist; import boost_histogram as bh In [2]: a = hist.axis.Regular(10, 0, 10, name="r") In [3]: h = bh.Histogram(a) In [4]: hist.Hist(a, name="hello") Out[4]: Hist(Regular(10, 0, 10, name='r'), storage=Double()) In [5]: hist.Hist(h, name="hello").name --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[5], line 1 ----> 1 hist.Hist(h, name="hello").name AttributeError: 'Hist' object has no attribute 'name' In [6]: hist.Hist(a, name="hello").name Out[6]: 'hello'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Passing a
bh.Histogram
object intohist.Hist
with thename
keyword argument does not work forname
.Steps to reproduce
The text was updated successfully, but these errors were encountered: