Closed sahand-asgarpour closed 3 months ago
This can be reproduced by adjusting example_single_link_redundancy
:
from ra2ce.analysis.analysis_config_data.enums.weighing_enum import WeighingEnum
handler = Ra2ceHandler(network=network_ini, analysis=analyses_ini)
handler.input_config.analysis_config.config_data.analyses[0].weighing = WeighingEnum.TIME
handler.configure()
handler.run_analysis()
Discussed with @sahand-asgarpour:
weighing == time
Ra2ce version checks
master
here.Reproducible example
OSM download, example_multi_link_losses, network.ini changed to include up to residential.
Current behaviour
OSM downloaded some links with avgspeed of 0. This results in NaN time calculation for each link. This crashes the multi_link_losses.
Desired behaviour
For links with avgspeed 0, convert this to the non-zero average of the speed of the links with the same road_type.
Additional context
Bellow time is calculated as np.nan if avgspeed is 0.