Menu ▾ ▴

#2899 Runtime error when entering parameters GUI and argument is not integer

nextrelease
open
nobody
None
5
1 day ago
1 day ago
No

When the script URI has an non-integer (5e4) for an integer parameter, you can't enter the GUI with the latest devel version (20260922c):

/home/jbf/project/juno/research-git/juno/u/mitchell/2026/20260923/plotParams_v3d3.jy?X='RHO'&Y='JUNO_Z'&Z='IMPACT_RATE'&dr='/home/jbf/project/juno/u/darrelle/2026/20260318/'&S='JUNO_Y'&grid=False&S_min=-5e4&S_max=5e4

Discussion

  • Jeremy Faden

    Jeremy Faden - 1 day ago

    This should also demo:

    i= getParam('i',50)
    print i
    

    and then call this script with i=5.0e1 .

     
  • Jeremy Faden

    Jeremy Faden - 1 day ago

    I think I know the change I made this past week that causes this, with the handling of the parameters.

     
  • Jeremy Faden

    Jeremy Faden - 1 day ago

    This has been a bug for a long time, going back to at least v2025a_1. This is also a problem for floats, too, especially when completions would be nice:

    .../dev/bugs/sf/2899/demo2899.jy?f=<T>
    

    The above would fail because f is equal to "" and doesn't parse.

    Interestingly, DatumRange parameters, which I always knew could parse incorrectly, are handled nicely.

    Since this is an old bug, I will not delay the release.

     

    Last edit: Jeremy Faden 1 day ago