Skip to content

Commit b86d3d2

Browse files
committed
Cleaned up implementation code example.
1 parent 856137c commit b86d3d2

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

GTFS/GTFS_Utilities.py

+2-16
Original file line numberDiff line numberDiff line change
@@ -366,30 +366,16 @@ def get_schedule_pattern_df(self):
366366
#c = df2.shape_id.nunique()
367367
return df2
368368

369-
test = GTFS_Utilities2(r"D:\stefan\Transit_2040_OSM\GTFS\2040_GTFS\revised_final", 0, 1439, 1)
369+
gtfs_util = GTFS_Utilities2(r"path\to\gtfs\folder", 0, 1439, 1)
370+
hourly_frequency_df = gtfs_util.get_trips_per_hour
370371

371-
#am =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2018\reversible_routes\AM\AM_detail.p')
372-
print 'done'
373-
#am =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2018\reversible_routes\AM\AM_detail.p')
374-
bus =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2040_OSM\Outputs\All\Bus\MD_detail.p')
375-
ferry =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2040_OSM\Outputs\All\Ferry\MD_detail.p')
376-
cr =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2040_OSM\Outputs\All\CR\MD_detail.p')
377-
lr =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2040_OSM\Outputs\All\LR\MD_detail.p')
378372

379373

380374

381375

382376

383-
#pm =test.get_tph_emme_rep_trip_id(r'D:\stefan\Transit_2018\reversible_routes\PM\PM_detail.p')
384377

385378

386-
#md_cols = [col for col in md.columns if col not in am.columns]
387-
#pm_cols = [col for col in pm.columns if col not in md.columns]
388-
389-
#md = md[md_cols]
390-
391-
392-
#final = pd.concat([am,md,pm], axis = 1)
393379

394380

395381

0 commit comments

Comments
 (0)