h[:,a:b:bh.project]is planned, but is dependent on boostorg/histogram#238 at the moment. Once “crop” or whatever it ends up being called is added, it should make this easy to implement.
, bh=True, nine unaboidable characters already. And, since
boost_histogram as bhis the recommend way to use the library, I think it’s not too bad. What would you have instead?
bh_objectwould be more descriptive.
object=True(and likewise not prefixing the other
bhspecific arguments, like
storage) would risk colliding with a future numpy release; but the risk there is very low.
a = bh.axis.regular(3, 0, 1, metadata=["foo", "bar", "baz"])