Menu

#772 Run Batch Tool sets list of M arguments, not M by N

closed-fixed
nobody
None
5
2022-06-21
2022-01-31
No

Often it's useful to just have a list of all the arguments in a list, where you specify each of a set of arguments. The M by N is handy, but sometimes you just want M arguments with fine control.

I think it would be fairly easy to make it so that if the first parameter name contains a comma or a semicolon, then each argument specified will be split and multiple parameters will be assigned.

{
   "param1":"sc;day",
   "param1Values": "rbspa;2018-02-02\nrbspa;2018-02-03\nrbspb;2018-02-01"
   "param2": "",
   "param2Values": "",
   "script:file:/home/jbf/tmp/juno/team/digitizer/convert/brad/convertPDS.jy"
}

Discussion

  • Jeremy Faden

    Jeremy Faden - 2022-01-31

    Also, the .batch file is hard to read, and it would be nice if param1Values could contain newlines. Maybe JSON doesn't support this.

     
  • Jeremy Faden

    Jeremy Faden - 2022-02-21

    This was actually a pretty trivial feature to implement (at the end of the day). Now you can edit the left parameter box to set sc;day and then each value with sc;day values.

    For example, see https://github.com/autoplot/dev/blob/master/rfe/sf/772/script.jy, and run it with seed;red;green;blue for the argument, and for the values:

    0;200;200;0
    1;0;200;200
    2;0;100;200
    3;200;100;0
    4;100;200;0
    0;100;200;100
    1;100;0;100
    2;100;0;200
    

    It also allows | and , to be used for the delimiters.

     

    Last edit: Jeremy Faden 2022-02-21
  • Jeremy Faden

    Jeremy Faden - 2022-02-22
    • status: open --> pending
     
  • Jeremy Faden

    Jeremy Faden - 2022-06-21
    • status: pending --> closed-fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.