Skip to content
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

Merge from branch #70

Merged
merged 5 commits into from
Sep 8, 2017
Merged

Merge from branch #70

merged 5 commits into from
Sep 8, 2017

Conversation

OmkarPathak
Copy link
Owner

  • Use matplotlib for images
  • Skeleton for extrapolated intersection 
  • Begin tests for extrapolated intersection 
  • Test calculate_one_moving_and_one_stationary
  • Create sample image using matplotlib

This problem is definitely difficult and common enough to warrant
its own module, but it doesn't define any new classes.

* docs/Geometry.rst - autodoc the new module
* pygorithm/geometry/extrapolated_intersection.py - first skeleton
* tests/test_geometry.py - skeleton tests for extrap. intr
This uses a lot of images because generating tests for these is hard. The
image files are all very small (<5kb) so it shouldn't make downloading
the repo significantly slower.

This algorithm can be tricky to get right so I wanted to have a very
exhaustive test suite.

* pygorithm/geometry/extrapolated_intersection.py - add more helper
functions
* pygorithm/geometry/polygon2.py - fix fuzzing test sometimes failing
* tests/test_geometry.py - add regression test for polygon, add tests for
first two functions of extrapolated_intersection
+ imgs/test_geometry/test_extrapolated_intersection - images that help
visualize what the tests are doing. the naming convention is explained
in test_geometry.TestExtrapolatedIntersection docstring
Add tests and images for calculate_one_moving_and_one_stationary in
extrapolated intersection. This is at the same rate of 16 tests per func
(16 images and 16 .grf files)

* pygorithm/geometry/extrapolated_intersection.py - change to invalid
return values so the tests fail as expected

* tests/test_geometry.py - add tests for an additional function
+ imgs/test_geometry/test_extrapolated_intersection/(many) - test imgs.
This is a sample of what the images look like using matplotlib instead of
Graph.

+ imgs/test_geometry/test_extrapolated_intersection/
	aa01_test_point_line_no_intr.py - matplotlib to generate:

+ imgs/test_geometry/test_extrapolated_intersection/out/
	aa01_test_point_line_no_intr_2.png - matplotlib generated file
Replace all the graph files and generated images with matplotlib files and
generated images. This is from @IanDoarns suggestion on
#69.

* imgs/test_geometry/test_extrapolated_intersection/(many) - replace with
	matplotlib files

* tests/test_geometry.py - update documentation to remove references to
	Graph files (in favor of matplotlib)
@OmkarPathak OmkarPathak merged commit 830140c into master Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants