[root]/trunk/pysal/cg
tests
(3 files, 1090 lines)

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 58 (100.0%) | 4473 (100.0%) | 77.1 |
| andrewwinslow | 9 (15.5%) | 3232 (72.3%) | 359.1 |
| phil.stphns | 10 (17.2%) | 617 (13.8%) | 61.7 |
| schmidtc | 30 (51.7%) | 502 (11.2%) | 16.7 |
| dreamessence | 1 (1.7%) | 73 (1.6%) | 73.0 |
| xinyueye | 4 (6.9%) | 47 (1.1%) | 11.7 |
| sjsrey | 4 (6.9%) | 2 (0.0%) | 0.5 |
issue #134, changing incomplete methods to rasie NotImplementedError.
35 lines of code changed in 1 file:
working with get_shared_segments
2 lines of code changed in 1 file:
Fixing test, adding docstring example.
8 lines of code changed in 1 file:
tests for get_shared_segments
1 lines of code changed in 1 file:
found bug in get_segment_point_intersect, was not working if pt was colinear with segment.
Added a fix and unit tests.
Changed get_segments_intersect to work with overlapping segments.
33 lines of code changed in 2 files:
porting doctests to unittests
adding many new unittests
fixed accuracy issue in is_collinear
identified bug with get_segments_intersect, fails when segments overlap
changed get_rectangle_rectangle_intersection to return Rectangle, Segment, Point or None to allow for overlap.
18 lines of code changed in 2 files:
Added an adjustable memory limit to distance_matrix, it will kick over to scipy's slower but more scalable algo when the required memory pased the threshold.
25 lines of code changed in 1 file:
removed unused scipy distance_matrix from common.py
moved our distance_matrix (and tests) from weights to cg.
updated callers
note: test_standalone contains many empty tests and will report failures.
62 lines of code changed in 1 file:
more namespace cleanup.
Identified cause of bug in issue #126, new unit test will fail until resolved.
1 lines of code changed in 1 file:
Added verbose flag to doctest calls.
1 lines of code changed in 1 file:
Defined __all__ for cg mods. Added verbose=True flag to doctest.testmod() in
shapes or standalone. We should check all doctest _test methods have
verbose=True.
7 lines of code changed in 2 files:
Adding __all__ ....
2 lines of code changed in 1 file:
Adding build_lattice_shapefile in weights.user:
build_lattice_shapefile Writes an ncol by nrow grid to a shapefile.
Adding bbcommon, get_rectangle_rectangle_intersection, point_touches_rectangle in cg.standalone:
bbcommon tests for touching rectangles
get_rectangle_rectangle_intersection returns the intersection of to rectangles
point_touches_rectangle returns True/Flase
Refactored get_shared_segments in cg.standalone:
Major speedup by using sets
Limiting search window to the intersection of the bounding boxes.
This adds a slight overhead, but should acctually speed things up for very detailed polygons.
149 lines of code changed in 1 file:
Solution for issue #116.
22 lines of code changed in 1 file:
Minor fixes in docstrings for correct rendering of some attributes tables
73 lines of code changed in 1 file:
- cleaning docs
1 lines of code changed in 3 files:
cleaning up clockwise test. Issue 14.
7 lines of code changed in 1 file:
clockwise optimization
27 lines of code changed in 1 file:
fix for issue 31: Rtreeweights rook check has a logic error. (bug was in both rtree and binning). Now testing for this bug as well. The solution was to mimic GeoDa, which check that for a given match there is a corresponding segment that matches. This does not get us any closer to shared boundary weights, as for speed it is desirable to stop checking after one segment has been found.
1 lines of code changed in 1 file:
adding eqality check to line segments
18 lines of code changed in 1 file:
adding test case for polygons nested in larger polygons, adjusting Polygon API to return ALL vertices including holes.
1 lines of code changed in 1 file:
Modified docstrings for sphinx.
289 lines of code changed in 1 file:
Modified docstrings for sphinx
171 lines of code changed in 1 file:
fix for issue #55
2 lines of code changed in 1 file:
Made cg.standalone docstrings Sphinx-compliant, but they are not reference-compliant. In other words, they do not tell us enough, there are blank fields for Attributes and sometimes Parameters.
138 lines of code changed in 1 file:
API changes for issue #48, changes signature of W.__init__.
0 lines of code changed in 1 file:
moving unittests from shape.py to tests directory. Including in global tests.
0 lines of code changed in 1 file:
Removed nonconforming BSD-license material.
3 lines of code changed in 3 files:
update pep0001 and locators
7 lines of code changed in 1 file:
minor change
2 lines of code changed in 1 file:
add rules
27 lines of code changed in 1 file:
fixed PolygonLocator.region
11 lines of code changed in 1 file:
thanks Xinyue, locators is still unfinished but these changes were correct
8 lines of code changed in 1 file:
Addressing issue #28.
A bug in Polygon.holes, was returning a list of vertices. Should have been returning a list of lists of vertices.
5 lines of code changed in 1 file:
Documentation: adding library documentation with stubs for cg and esda.
9 lines of code changed in 2 files:
using area clockwise test for now. Andrew will test robustness of other options.
43 lines of code changed in 3 files:
Moved common code in Polygon.__init__ and get_polygon_point_intersect() into separate function. Added is_clockwise() method. Moved Triangle into is_clockwise() method.
126 lines of code changed in 2 files:
Fixed bug in Polygon.__init__.
11 lines of code changed in 1 file:
Removed legacy rounding kludge.
1 lines of code changed in 1 file:
minor updates to SHP file api and Rectangle. Adding emtpy __init__.py for esda
9 lines of code changed in 1 file:
(5 more)