Skip to content

Commit

Permalink
- Added date selection to KML generation
Browse files Browse the repository at this point in the history
  • Loading branch information
tazle committed Apr 23, 2012
1 parent c29c5a6 commit acf2c40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frequency_kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ def kml_pairs(interval_pair_stoppings, stream):
kml.stream(stream)

def main():
sel_date = dt.datetime.strptime(sys.argv[1], "%Y-%m-%d").date()
services = unmarshal(sys.stdin)
print >> sys.stderr, len(services)
sel_date = dt.date(2012, 04, 10)
time_intervals = gen_time_intervals(services, sel_date)
#time_intervals = [(instant(sel_date, dt.timedelta(hours=8)), instant(sel_date, dt.timedelta(hours=9)))]
ips = gen_interval_pair_stoppings(services, sel_date, time_intervals)
kml_pairs(ips, sys.stdout)

Expand Down

0 comments on commit acf2c40

Please sign in to comment.