Closed kuanb closed 7 years ago
Looking at this a bit more, it seems that the sole purpose of that attribute is to be fed through timeselector()
. If that is the case, and we just want interpolated departure times, then perhaps it might make more sense to just include this on the main stop_times
data frame as an additional column, rather than a whole new dataframe?
Looks like in network.py create_transit_net()
, it's calculated:
gtfsfeeds_df.stop_times_int = interpolatestoptimes(stop_times_df=gtfsfeeds_df.stop_times,
calendar_selected_trips_df=calendar_selected_trips_df, day=day)
gtfsfeeds_df.stop_times_int = timedifference(stop_times_df=gtfsfeeds_df.stop_times_int)
If that works, I'll just make a note of it here and close this out.
Yes that is correct. This repo is still in alpha so things like your suggestion for the function underscores would be really helpful in cases like these where specific functions are not designed to be run in isolation. Also a demo for a the full workflow is still in progress but will be here soon. Please close this when you can.
I'm not certain this is the case, but am a bit confused as it appears that, although
stop_times_int
is instantiated during theinit
of a class object from this class, it is never updated.Specifically, in
urbanaccess.gtfs.load.gtfsfeed_to_df
, inload.py
, the following attributes are updated:That is, all but
stop_times_int
. Yet, subsequent steps, such asurbanaccess.gtfs.headways.headways
check to ensure thatstop_times_int
is notFalse
or.empty()
. I suspect there is an intermediary step that is missing (?).