You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the save_script_parameters() function introduced in #111 doesn't work as intended as the globals() call returns the dictionary of the current module. Inside a function, this is the module where it is defined, not the module from which it is called as described in the built-in functions API docs for Python 2.7.
Long story short, this call is getting the global symbol table of the imcflibs namespace instead of the one from the caller (which is what we'd need for the org.scijava.script.ScriptModule part:
After discussing with @rohangirishrao we decided to remove the function from current devel in order to not have it block the next release and see what "the best solution"™️ could look like in a new branch.
Activity
Remove misc.save_script_parameters()
Re-add misc.save_script_parameters()
ehrenfeu commentedon Jan 23, 2026
@rohangirishrao you can fork the newly created branch and continue working on it there: https://github.com/imcf/python-imcflibs/tree/save-script-params
rohangirishrao commentedon Mar 25, 2026
PR #140 made with a workaround, pass
globals()directly to the methodMerge pull request #140 from rohangirishrao/save-script-params