Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(524)

Issue 11051: Fix runtime exception for unknown location_types at the same lat/lon (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by clancy.childs
Modified:
15 years, 1 month ago
Reviewers:
Tom, googletransitdatafeed
Base URL:
http://googletransitdatafeed.googlecode.com/svn/trunk/
Visibility:
Public.

Description

http://code.google.com/p/googletransitdatafeed/issues/detail?id=113

Patch Set 1 #

Patch Set 2 : Updated from Tom's code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M python/test/testtransitfeed.py View 1 1 chunk +16 lines, -0 lines 0 comments Download
M python/transitfeed.py View 1 1 chunk +1 line, -3 lines 1 comment Download

Messages

Total messages: 4
clancy.childs
Please review this change that fixes a RuntimeException when an unknown location_type is found in ...
15 years, 9 months ago (2008-12-15 19:36:09 UTC) #1
Tom
http://codereview.appspot.com/11051/diff/1/2 File python/test/testtransitfeed.py (right): http://codereview.appspot.com/11051/diff/1/2#newcode1262 Line 1262: "BADLOCATION,Airport Bad Location,36.868446,-116.784582,2,\n" Shorter is better: give STATION ...
15 years, 9 months ago (2008-12-15 20:48:43 UTC) #2
clancy.childs
I have updated with Tom's suggestions. http://codereview.appspot.com/11051/diff/1/2 File python/test/testtransitfeed.py (right): http://codereview.appspot.com/11051/diff/1/2#newcode1262 Line 1262: "BADLOCATION,Airport Bad ...
15 years, 9 months ago (2008-12-16 00:20:10 UTC) #3
Tom
15 years, 9 months ago (2008-12-16 01:42:06 UTC) #4
One nit pick and this is good to submit.

http://codereview.appspot.com/11051/diff/1/2
File python/test/testtransitfeed.py (right):

http://codereview.appspot.com/11051/diff/1/2#newcode1262
Line 1262: "BADLOCATION,Airport Bad Location,36.868446,-116.784582,2,\n"
On 2008/12/16 00:20:10, clancy.childs wrote:
> On 2008/12/15 20:48:44, Tom wrote:
> > Shorter is better: give STATION a bad location_type and remove BADLOCATION,
> > BULLFROG, STAGECOACH
> 
> I did this, but didn't remove BULLFROG and STAGECOACH as they are used by the
> stop_times and trips that the class inherits and to remove them, would require
> testing for more errors or re-doing the trips and stop_times for this test.

Shucks. I didn't look at testBadLocationType closely and just saw that it had
less stop rows. A MemoryZipTestCase with less preinitialized objects would be
handy but doesn't need to be in this change.

http://codereview.appspot.com/11051/diff/203/9
File python/transitfeed.py (right):

http://codereview.appspot.com/11051/diff/203/9#newcode3060
Line 3060: elif stop.location_type in (0, 1) and other_stop.location_type  in
(0, 1):
please wrap to 80 cols
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b