--set flag ; return table#45
Conversation
|
This is a good feature to have / add, any concerns @b-fenelon. Though I know the |
|
Porting a comment I made on slack: Taking a look at this. Mechanically, you can probably simplify this a lot by just accepting "set" as string and parsing it with YAML. This is an extremely common pattern I use all the time. It would look something like this: And then could call the script like: YAML handles the types, and you avoid having to write a custom mini language and parser. The kwutil.Yaml.coerce is also nice because if you specify a path to a YAML file with a big set of overrides in it, it will read the file and use that, but if the string looks like literal YAML text it parses it right off of the command line. You can get more strict behaviors with kwutil.Yaml.load and kwutil.Yaml.loads |
One new feature:
--setflag inmagnet.evaluation, to be able to set a field in the model card from the command lineOne minor thing:
human_tablefrommagnet.instance_predictor(so that our card can access results)