Fixes #3,#11,#12,#15 resolves #2,#14,#23 couple of perfomance tweaks#20
Open
kwauchope wants to merge 38 commits intojjguy:masterfrom
Open
Fixes #3,#11,#12,#15 resolves #2,#14,#23 couple of perfomance tweaks#20kwauchope wants to merge 38 commits intojjguy:masterfrom
kwauchope wants to merge 38 commits intojjguy:masterfrom
Conversation
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
added 14 commits
August 3, 2014 14:26
heatmap/heatmap.py
Outdated
added 10 commits
August 16, 2014 14:53
…travis install copies cHeatmap.cpython-*.so instead of cHeatmap.so
…as no __version__ is available
This file contains hidden or 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
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.