Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Induction loops detectors

https://www.google.com/search?&q=IndentationError%3A%20unexpected%20indent

Am Mi., 9. Juni 2021 um 11:07 Uhr schrieb zineb Chenini <zinebchenini8@xxxxxxxxx>:
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 <namdre.sumo@xxxxxxxxx> 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 <zinebchenini8@xxxxxxxxx>:
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top