Skip to content

Commit

Permalink
Enable two pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Jan 12, 2025
1 parent 2d8e298 commit 3fb5d53
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions data/src/calculate_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import pandas as pd
import yaml
from utils.constants import DOCKER_ENDPOINT_SECOND_PASS
from utils.logging import create_logger
from utils.times import (
TravelTimeCalculator,
Expand Down Expand Up @@ -71,13 +70,7 @@ def main() -> None:
# if second-pass is enabled)
logger.info("Tiles loaded and coodinates ready, starting routing")
tt_calc = TravelTimeCalculator(config, inputs)
if config.args.mode not in config.params["times"]["two_pass"]:
logger.info("Skipping second pass for %s mode", config.args.mode)
results_df = tt_calc.many_to_many(
endpoint=DOCKER_ENDPOINT_SECOND_PASS, second_pass=False
)
else:
results_df = tt_calc.many_to_many()
results_df = tt_calc.many_to_many()

logger.info(
"Finished calculating times for %s pairs in %s",
Expand Down

0 comments on commit 3fb5d53

Please sign in to comment.