Hi Jakob,

when I was trying to generate the example I realized what causes the
problem. I scale the demand and generate veh-route.xml output and when
loading that veh-route.xml output for the second time, I am scaling the
demand again. Since the vehicle ID 123 has been already scaled, the vehicle
ID 123.1 already exists in veh-route.xml and SUMO cannot re-scale the
demand and generate vehicle ID 123.1 for the second time. Thus, scaling a
demand file that has been already scaled is not possible. Does it make
sense to implement an "ID checker" in option --scale to avoid duplicate
IDs?

Cheers,
Sasan

On Sun, Aug 29, 2021 at 11:03 AM Jakob Erdmann <[email protected]>
wrote:

> Hello,
> ids are never converted to integer and I'm able to reload
> --vehroute-output with --scaled in my own test. Can you provide a small
> sample input that creates duplicate ids in the vehroute-output?
> regards,
> Jakob
>
> Am Sa., 28. Aug. 2021 um 02:59 Uhr schrieb Sasan Amini <[email protected]
> >:
>
>> Hi all,
>>
>> when I scale my demand with a factor and save the new route file I see
>> that the trip IDs are renamed by adding a numerator after a dot to the
>> original ID e.g. trip ID 123 scaled by 3 results in 123, 123.1 and 123.2.
>> When I try to load this new demand file, I get an error saying another
>> vehicle with the ID 123.1 exists, which I think is due to the fact the IDs
>> are converted to integer if they are numerical (replacing the dot with
>> underscore solves the problem).
>>
>> Best,
>> Sasan
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to