load the stop definitions with option --additinal-files or add
<additional-files value="yourstops.xml"/> to your sumocfg.

Am Mi., 9. Juni 2021 um 12:31 Uhr schrieb zineb Chenini <
[email protected]>:

> How I can relate network file with additional file, because it gives the
> following error on the command line  :
> X=traci.busstop.getPersonCount(station1)
> NameError: name 'station1' is not defined
>
> Le mer. 9 juin 2021 à 10:41, Jakob Erdmann <[email protected]> a
> écrit :
>
>> https://www.google.com/search?&q=IndentationError%3A%20unexpected%20indent
>>
>> Am Mi., 9. Juni 2021 um 11:07 Uhr schrieb zineb Chenini <
>> [email protected]>:
>>
>>> Hi,  I want to have information on the number of waiting passengers in
>>> station1
>>> I used the TraCI function traci.busstop.getPersonCount(stopID) as
>>> follows :
>>> def run():
>>>     step = 0
>>>     while traci.simulation.getMinExpectedNumber() > 0:
>>>         traci.simulationStep()
>>>             traci.busstop.getPersonCount(station1)
>>>         step += 1
>>>     traci.close()
>>>     sys.stdout.flush()
>>>
>>>  but it gives the following error on the command line :
>>>  traci.busstop.getPersonCount(station1)
>>> IndentationError: unexpected indent
>>> Do you have any idea how to solve the problem?
>>> additional file :
>>> <additional>
>>> <busStop id="station1" lane="a_0" startPos="-1226" endPos="-1216" />
>>> </additional>
>>> Thank you in advance.
>>>
>>> Le lun. 7 juin 2021 à 11:43, Jakob Erdmann <[email protected]> a
>>> écrit :
>>>
>>>> This is not supported by detectors. You can use stop-output which
>>>> records this number every time a vehicle stops at the station. TraCI also
>>>> provides the function traci.busstop.getPersonCount(stopID).
>>>>
>>>> Am Mo., 7. Juni 2021 um 10:44 Uhr schrieb zineb Chenini <
>>>> [email protected]>:
>>>>
>>>>> Hi everyone,
>>>>> How can I use a detector in order to have information on the number of
>>>>> waiting passengers in a station?
>>>>> Thank you in advance.
>>>>> _______________________________________________
>>>>> 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
>>>
>> _______________________________________________
>> 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