calling randomTrips with your options creates 50 persons as expected.
Since your prior script references a different network
(data/test.net.xml.gz) and also calls a  test.sumocfg that you did not
include, these are candidates where your problem may originate.

Am Fr., 24. März 2023 um 21:04 Uhr schrieb Gervalino Bilas <
gervalino.bi...@gmail.com>:

> Hello Jakob.
> Thanks for helping me.
>
> I couldn't figure out why I can't generate intermedians walks.
>
> Here is the network  file.
>
> Em qui., 23 de mar. de 2023 às 19:51, Jakob Erdmann <namdre.s...@gmail.com>
> escreveu:
>
>> This might happen if the network doesn't allow pedestrians. You can
>> probably figure it out yourself by playing around with the test cases for
>> randomTrips:
>> https://sumo.dlr.de/extractTest.php?path=tools/trip/randomTrips/persons
>> If it's still unclear after that, feel free to provide the network file.
>>
>> Am Do., 23. März 2023 um 20:53 Uhr schrieb Gervalino Bilas <
>> gervalino.bi...@gmail.com>:
>>
>>> Hello.
>>>
>>> Is it possible to have control about the simulation's time?
>>>
>>> With this code I can have 50 pedestrians walking in a network in a
>>> random way:
>>>
>>>     randomTrips.main(randomTrips.get_options([
>>>         '--net-file', 'data/test.net.xml.gz',
>>>         '--route-file', 'test.pedestrians.rou.xml',
>>>         '--pedestrians',
>>>         '--prefix', 'ped',
>>>         '--trip-attributes', 'departPos="random" arrivalPos="random"',
>>>         '--end', '50']))
>>>
>>>     traci.start([sumoBinary, '-c', os.path.join('data', 'test.sumocfg'),
>>> "--fcd-output", "fcd.xml"])
>>>
>>>
>>> But at the end of all walks, about 18 minutes, the simulation stops and
>>> I need to get data for 13 hours.
>>>
>>> I had help from Jakob Erdmann and could generate intermediate
>>> (--intermediate) walks to have por simulation time. But when I include this
>>> option, the "test.pedestrian.rou.xml" is empty and the simulations don't
>>> run anymore.
>>>
>>> Regards,
>>> _______________________________________________
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to