Comments (8)
Owning boost
would be a prerequisite for importing into boost.histogram
, since changes to boost/__init__.py
could lock you out of the use of that name. Even if you do own it, there's not a lot of value to using it as a namespace unless you expect there to be other, parallel boost.XYZ
libraries.
Despite the ambiguity about -
(sometimes used for package names) vs _
(always used for import names), there's a precedent. Quite a few libraries use -
for a package name and _
for import. At worst, there's two things to try.
I don't think the -
or _
is ideal; somebody might have a better idea.
from boost-histogram.
If there was no other package called boost, we could just grab the name and the package slot. Since there are issues using boost
and we would like to avoid the -
and _
issue, how about using another name? I am thinking that maybe having boost
in the name is not a good idea, since this code is not officially reviewed by the Boost community and perhaps we should avoid any misunderstanding there.
What other names could we use? bhistogram
?
from boost-histogram.
boosthistogram
would not be terrible. Long enough words are easier to visually separate, particularly if both are very familiar, like this.
But I think the "standard" thing to use for a PyPI package like this, for better or worse, is boost-histogram
(import boost_histogram
).
from boost-histogram.
There is a package called boost - It's tagline is "Boost automatically toots from users of the Mastodon social network" - and only has one 0.1 release a couple of years ago. It's unlikely to be a problem, but we can avoid it.
from boost-histogram.
Just so that there is no misunderstanding, I am not fond of bhistogram
, I am just brain-storming at this point. I think I can live with boost-histogram
and boost_histogram
. Users (except maybe me) will anyway not install boost-histogram
, but hist
, right? If boost-histogram
is only used internally by hist
, then we can live with this minor inconvenience.
from boost-histogram.
My thought is to have boost-histogram as the "Numpy" of histogramming. So a user who wants to fill and manipulate histograms will install boost-histogram; no dependencies save Numpy, and works everywhere. They can also build libraries on top of it like they would Numpy. If they want a "Pandas" of histogramming, they will install hist. Hist will use aghast, matplotlib, and potentially other dependencies, just like Pandas. Hist is aimed at physics analyses and similar uses.
from boost-histogram.
Yes, that sounds good to me. I think the module should be called boost_histogram
because that's the least surprising when you install a package called boost-histogram
.
from boost-histogram.
This was done in #110. I'll leave this open for a few days for any discussions about the way it was done, names, etc.
from boost-histogram.
Related Issues (20)
- [BUG]: Scaling a weighted histogram does not appropriately scale the variance HOT 6
- [FEAT] Add operators (mult/div/sub) for (weighted) histograms/accumulators HOT 6
- [BUG] np.cumsum fails on views with non-default storage type
- [BUG] Failure to conver awkward Masked array to numpy HOT 3
- [BUG] Indexing along two axes with list and single index raises RuntimeError
- [DOCS] add documentation for Nox
- [DOCS] change all the code directives to code-block
- [BUG] Investigate providing a better error message if sample= is missing
- [FEAT] Scaling a slice of a histogram
- [BUG] Cannot get index of huge numbers in IntCategory HOT 1
- [BUG] Issues with copying in child classes of weighted Histogram
- [FEAT] in multidimensional histograms allow the binning to vary along an axis
- Inconsistent filling of values on bin edges [BUG] HOT 1
- [FEAT]: Add -latomic link arg for armv7l machines HOT 3
- Pickling a histogram creates an extra copy of the array in memory HOT 1
- [BUG] Filling Integer Axis with doubles is buggy
- Version 1.4.0 and roadmap
- *Category axes do not support disabling overflow
- [BUG] Filling with unsigned ints in IntCategory axis raises TypeError HOT 1
- Histogram with WeightedMean storage returns wrong sum_of_weights_squared HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boost-histogram.