Skip to content

is "GetControlledLinks(str).Content.NumberofSignals;" valid? #27

@ObKress

Description

@ObKress

getting " InvalidOperationException: Sequence contains no elements " error when trying to call

var linkcount = client.TrafficLight.GetControlledLinks(newjunction.name).Content.NumberOfSignals;

Not my code. It seems to me that possibly the .NumberofSignals is not a defined value.
The original code is trying to return the controlledlinks.length integer value from SUMO, I believe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions