physt
physt copied to clipboard
Dtypes for bin contents
Support dtypes.
To do:
- [x] Support for creation in Histogram1D
- [x] Support for creation in HistogramND & calculate frequencies
- [x] Loss-less arithmetics with constants
- [x] Check fill, fill_n
- [x] Addition of different types
- [x] Support retyping (dtype=...)
- [ ] More thorough testing
- [ ] Document it properly
Still broken
What is the goal?
If you explicitly specify dtype in constructor, it should be observed. If you explicitly specify dtype in h1, it should be observed.
if dtype: < -- this returns False even when a type!
802bb6c918a561cd4c5dd48b6ed87ab3fc3baa15 fixes some of the problems