Build Transfer Patterns¶
Builds structures related to transfer patterns
-
builders.build_transfer_patterns.
initialize
() → tuple[source]¶ Initialize variables for building transfer patterns file.
- Returns
print line breaker G: Network graph of NETWORK NAME stops_list (list): CORES (int): Number of codes to be used WALKING_LIMIT (int): Maximum allowed walking time start_time: timestamp object USE_PARALlEL (int): 1 for parallel and 0 for serial MAX_TRANSFER (int): maximum transfer limit for which transfer patterns will be built. WALKING_FROM_SOURCE (int): 1 or 0. 1 indicates walking from SOURCE is allowed. PRINT_ITINERARY (int): 1 or 0. 1 means print complete path. OPTIMIZED (int): 1 or 0. 1 means collect trips and 0 means collect routes. GENERATE_LOGFILE (int): 1 to redirect and save a log file. Else 0 USE_TBTR (int): 1 to use TBTR for generating transfer patterns. 0 for RAPTOR CHANGE_TIME_SEC (int): change-time in seconds.
- Return type
breaker (str)
-
builders.build_transfer_patterns.
post_process
(runtime, CORES, HUB_COUNT, NETWORK_NAME) → None[source]¶ Post process and print the statistics realted to transfer patterns.
- Parameters
runtime (float) – total runtime in minutes
CORES (int) – Number of codes to be used
HUB_COUNT (int) – number of hub stops NETWORK_NAME (str): name of the network
- Returns
None
-
builders.build_transfer_patterns.
remove_older_files
(NETWORK_NAME, HUB_COUNT) → None[source]¶ Creates a new (empty) directory for saving transfer patterns.
- Parameters
NETWORK_NAME – name of the network
- Returns
None