Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of traffic_light_time #8

Open
Domsall opened this issue May 23, 2024 · 0 comments
Open

Usage of traffic_light_time #8

Domsall opened this issue May 23, 2024 · 0 comments
Assignees

Comments

@Domsall
Copy link
Collaborator

Domsall commented May 23, 2024

traffic_light_time has a default value of 60.
The config-file of the tl intersection has a traffic_light_time value of -1.
The config-file of the non-tl intersection has a traffic_light_time value of 1.

The code used to always include the following function:

for leader in car_at_redlight(data_frame, lane_data, lanes):
free_leaders += " " + str(leader)
entries.append(("", leader))

Now, this is only called, when traffic_light_time exists in the config file (used to not exist). And with the traffic_light_time value of the tl-intersection being -1, this function would not be called here, too.

tlt = self._data_set.get_file_specific_options(rec).get(
"traffic_light_time") or 0
if tlt > 0:

Is this the correct behavior? My current code always calls this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants