cloudmesh / cloudmesh-flow

Workflow for cloudmesh
Other
1 stars 1 forks source link

return status #12

Closed laszewsk closed 5 years ago

laszewsk commented 5 years ago
    entry:
      color: green
      label: b
      value: x
      shape: circle

make sure the value is interpreted as array, you can use the Parameter class from cloudmesh to convert it in an array. But this is important as this needs to be interpreted by The viz component. Alternatively you could simply convert this as a string and pass along to the gui as string, so there are multiple ways this could be done, but agree upon what you expect

    entry:
      color: green
      label: b
      value: x, y
      shape: circle

So one way is (pseudocode)

vars = Parameter.expand(value) for var in vars: value[var] = get value for var (database, or eval(var)

now you have an array and you can convert it to a string

out = `, '.join(vars)

now you can use out in the vis and are able to print n values also

robludwig commented 5 years ago

We now add status to the db objects. Will make a new issue for the javascript frontend