Comments (6)
Thanks for reporting this, this definitely seems like a bug! I'm going to be able to address this in the next few weeks but if anyone has a chance to investigate and open a pull request, I'll happily review it!
from fast-histogram.
Glancing at the code, I think the issue is that we currently assume all arrays have the same memory layout since we use a single NpyIter_AdvancedNew
for all arrays. This should clearly be generalized to avoid the kind of issue described above.
from fast-histogram.
I found the issue, PR forthcoming
from fast-histogram.
@LucasCampos - could you check whether things work fine with the latest developer version?
from fast-histogram.
Hey! Thanks for suck a quick reponse. I can confirm that the new code works locally as well!
Numpy version 1.18.1
Fast-histogram version 0.9.dev2+g82f140b
NOT EXPLICITLY COPYING THE DATA
===FAST-HIST===
[[0. 0. 0. ... 0. 0. 0. ]
[0.00524697 0.11627543 0.00218829 ... 0. 0. 0. ]
[0. 0.0233833 0.08906353 ... 0. 0. 0. ]
...
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]]
===NUMPY===
[[0. 0. 0. ... 0. 0. 0. ]
[0.00524697 0.11627543 0.00218829 ... 0. 0. 0. ]
[0. 0.0233833 0.08906353 ... 0. 0. 0. ]
...
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]]
EXPLICITLY COPYING THE DATA
===FAST-HIST===
[[0. 0. 0. ... 0. 0. 0. ]
[0.00524697 0.11627543 0.00218829 ... 0. 0. 0. ]
[0. 0.0233833 0.08906353 ... 0. 0. 0. ]
...
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]]
===NUMPY===
[[0. 0. 0. ... 0. 0. 0. ]
[0.00524697 0.11627543 0.00218829 ... 0. 0. 0. ]
[0. 0.0233833 0.08906353 ... 0. 0. 0. ]
...
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]
[0. 0. 0. ... 0. 0. 0. ]]
from fast-histogram.
@LucasCampos - thanks! I'll make a new release.
from fast-histogram.
Related Issues (20)
- Add support for 32-bit and non-native-endian HOT 1
- Incorrect work for 3d np.array HOT 1
- Hypothesis failures HOT 2
- histogram result has strange spikes as compared to numpy histogram HOT 3
- Add 3D or N-d histogram function HOT 2
- Release the GIL
- Add OpenMP HOT 2
- setup_requires without install_requires not supported by NumPy HOT 2
- Numpy version in pyproject.toml should be pinned
- messing around with alternatives
- upstreaming HOT 2
- Long doubles make histogram2d fail subtly, maybe add type check? HOT 3
- Bug in v0.7: Incorrect way to translate input number to histogram bin HOT 1
- Improve how we generate test cases with hypothesis HOT 1
- Suggestion: memory allocation enhancement
- [0.11] Segmentation fault on tests HOT 5
- different result compared to numpy HOT 4
- histogram1d returns incorrect bins due to rounding error
- Thanks for all the work HOT 1
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 fast-histogram.