tferr / Scripts

:microscope::cocktail: Home of the ImageJ BAR: A collection of Broadly Applicable Routines for ImageJ
https://imagej.net/BAR
GNU General Public License v3.0
24 stars 18 forks source link

fixing a logic error in tool #28

Closed lacan closed 6 years ago

lacan commented 7 years ago

  File "BAR/Data_Analysis/NN_Distances.py", line 85, in <module>
  File "BAR/Data_Analysis/NN_Distances.py", line 72, in main
UnboundLocalError: local variable 'x' referenced before assignment```
lacan commented 7 years ago

Actually, this causes the error as well... Seems that the Script Parameter variables are not being initialized...?

tferr commented 7 years ago

Thanks a lot! I think the problem is a silly error: While ago someone asked to have the script retrieving ResultsTable columns in a case-insensitive matter, and I just went in an edit it without thinking much about it. (I think such feature was needed because of some lower case conversions in a macro elsewhere.)

Should be fixed with 0f6989f. Does it work for you? (Closed this involuntarily), I will wait for your feedback on this before closing...

lacan commented 6 years ago

Sorry, lost track of this for some reason.

Looks good to me. I'll cancel the pull request.

All the best

Oli