Open oceanlumberjack opened 5 years ago
Modify the way that configs are processed to allow simple math (+,-,/,*) in the Par declaration of a config.JSON.
{ "Sources": { "xgraph": "{xgraph}" }, "Modules": { "Module": { "Module": "Modules.Module", "Source": "xgraph", "Par": { "Parameter": 1/100 } }, "Deferred": [] } }
Could make it a string to eval. Have some type of header “FUN: 1/100” Then calculate anything in the string after FUN:
Could then define
TIME: “FUN: Date.now()”
Modify the way that configs are processed to allow simple math (+,-,/,*) in the Par declaration of a config.JSON.