Skip to content

Julia: list values in concore.params get cut off ("[1.0" instead of the list) #670

Open

Description

@bhuvan-somisetty

load_params!() in concore.jl (same code in concoredocker.jl) doesn't parse list values in concore.params.

with this in in1/concore.params:

{'setpoint': [1.0, 2.0, 3.0], 'gain': 2.5}

python gives {'setpoint': [1.0, 2.0, 3.0], 'gain': 2.5}, but julia gives:

Dict{String, Any}("setpoint" => "[1.0", "gain" => 2.5)

the dict regex ([^,}]+) stops at the first comma, so the value gets cut. the key=value form has a similar gap: setpoint=[1.0,2.0];gain=2.5 comes back as the string "[1.0,2.0]" in julia, while python gives a list.

so tryparam("setpoint", ...) in a julia node returns a broken string, not the list a python node would get from the same file.

tested on dev (8f3e444) with julia 1.10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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