-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #3,#11,#12,#15 resolves #2,#14,#23 couple of perfomance tweaks #20
Open
kwauchope
wants to merge
38
commits into
jjguy:master
Choose a base branch
from
kwauchope:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put in a test to break early from the density calculations when dist>radius. Stops the contribution of a point to pixels outside of it's radius, an extreme version of this is possibility of having very visible squares in the heatmap depending on radius and pixVal calculation constants.
Fix pip install error
kwauchope
changed the title
Stop points bleeding into pixels outside of radius
Fixes #12, resolves #14, couple of perfomance tweaks
Aug 1, 2014
kwauchope
changed the title
Fixes #12, resolves #14, couple of perfomance tweaks
Fixes #11,#12, resolves #14, couple of perfomance tweaks
Aug 2, 2014
kwauchope
changed the title
Fixes #11,#12, resolves #14, couple of perfomance tweaks
Fixes #12, resolves #14, couple of perfomance tweaks
Aug 2, 2014
kwauchope
changed the title
Fixes #12, resolves #14, couple of perfomance tweaks
Fixes #12,#3,#15 resolves #14, couple of perfomance tweaks
Aug 3, 2014
kwauchope
changed the title
Fixes #12,#3,#15 resolves #14, couple of perfomance tweaks
Fixes #3,#11,#12,#15 resolves #2,#14, couple of perfomance tweaks
Aug 4, 2014
from PIL import Image | ||
|
||
use_pyproj = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional Import of pyproj
…travis install copies cHeatmap.cpython-*.so instead of cHeatmap.so
…as no __version__ is available
kwauchope
changed the title
Fixes #3,#11,#12,#15 resolves #2,#14, couple of perfomance tweaks
Fixes #3,#11,#12,#15 resolves #2,#14,#23 couple of perfomance tweaks
Aug 22, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds python3 support from #23 and based on work from @mpern . All changes backwards compatible with 2.6 and 2.7. Added Travis builds for 2.6,2.7,3.2,3.3,3.4
Added different data type support such as an already flattened array to save processing and more flexibility while not breaking backwards compatibility. Valid point inputs now include flat, array of arrays, array of tuples, tuples of tuples and tuple of arrays. Internally stores everything in a flat array.
Added weight functionality to resolve #14. Weight functionality is optional for backwards compatibility. Expects arrays or tuples with 3 values or every 3rd point in a flat array to be a weight between 0 and 1.
Added ability to specify source and destination epsg for multiple projection support to resolve #2 . Is an optional install (heatmap[proj]) that requires pyproj. With this addition the output can be used for mercator maps and such as well as transforming coordinate systems such as WGS84 to World Equidistant Cylindrical for more accurate KML overlays.
Fixes #12 by optionally using setuptools if available. Cleaned up so #11 is fixed as well.
Fixes #3 and #15 due to mixup of east/west in saveKML.
Put in a test to break early from the density calculations when dist>radius. Stops the contribution of a point to pixels outside of it's radius, an extreme version of this is possibility of having very visible squares in the heatmap depending on radius and pixVal calculation constants. After some quick profiling also reduced processing time by almost 20% which makes sense due to the main loop being reduced by a factor of pi/4 and if the branch predictor is getting it right more often than not. This is significant for large dot sizes and data sets.