These are chat archives for fiji/fiji

24th
Oct 2017
aghidotti
@aghidotti
Oct 24 2017 10:46
hello all. I'm having a problem scripting with jython. I defined a function B into file A.py; then I import my function with statement "from A import B" and then i can use it. When I modify it, since B is compiled by java JIT, I need to restart fiji to use the new version. I found here https://imagej.net/Jython_Scripting#Self_written_Jython_modules_for_ImageJ a workaround to avoid restarting Fiji, but it doesn't work since I'm getting a nullpointerexception and a fiji restart becomes mandatory to keep working. can you help me?
Curtis Rueden
@ctrueden
Oct 24 2017 12:59
@kapoorlab Take a look at the SciJava Common PrefService. If your goal is just persistence, you can use unique IDs and get the desired behavior. If you want external access to the stored preferences (e.g., edit INI file style or something), then right now the location of the persisted values is not guaranteed by the API.
@aghidotti Sounds a bit involved to debug that; please post on the ImageJ Forum. I think @m-entrup is not in this channel, and he is the one who wrote that documentation. But he is on the forum; you can mention him.
aghidotti
@aghidotti
Oct 24 2017 15:25
@ctrueden thank you for your attention
Varun Kapoor
@kapoorlab
Oct 24 2017 15:30
@ctrueden thanks, I am looking for more of an INI file style, yes.
Curtis Rueden
@ctrueden
Oct 24 2017 16:01
@kapoorlab There is something in SCIFIO right now: IniWriter and IniParser. I want to migrate that into SciJava Common, especially if it's useful to you.
Varun Kapoor
@kapoorlab
Oct 24 2017 17:12
@ctrueden It would be useful for batch modes where users keep the experimental data obtained under different conditions and find a sweet parameter set using some of it and then want to save and run all in batch mode using such an ini file.
Varun Kapoor
@kapoorlab
Oct 24 2017 17:18
I mean sweet parameter set for a folder of images and other set of parameters that work better for other folder of images