@LovelyBuggies minuit is an "industry standard" in HEP. People know it, trust it, but also know its shortcomings. I have seen heated discussions about switching to a different minimiser. I think you should at least try to provide one or two minuit example.
Thanks for your suggestion. Seems good!
When I looked back to build the boost-histogram dev env recently, I met a problem. Not sure why this happened. I removed the egginfo files and use
pip -v -e .[all], but the Traceback was thrown.
Hint, I just tested the WIP branch
henryiii-iweight and it was broken similarly. Does it have something to do with this trial? And should branch
xcrun: error invalid active developer path
pytest-sugar. In fact, the
pytest-sugaris auto-installed when
pip install -v -e .[all&dev], meaning that users and developers should manually uninstall it after activating the env and then reinstall dev env. So I think we should either make
pytest-sugarcompatible or just remove the
pytest-sugarrequirement in the editable mode.
Sorry, I intended to respond, but got distracted. If you treat them as numpy arrays, then you can do anything you would with numpy arrays:
with np.seterr(divide=‘ignore’): h1.view() / h2.view()
Or, even better,
h2_masked = np.ma.masked_array(h2.view(), 0) h1.view() / h2_masked
That one will be properly masked out where the division is invalid.