AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
June 24, 2008 10:47PM
Tom, regarding:
File "../../../AUTISM_SCRIPTS/motionprogram.s", line 396
maxrdiff = max(abs(k) for k in motdiff[0:3])
^
SyntaxError: invalid syntax

That is my mistake for using new 2.4 syntax when backwards-compatible syntax would work just as well. It should be:
maxrdiff = max([abs(k) for k in motdiff[0:3]])
I'll update it on the server here when I get a chance to check it in and go through the re-release process, but you can make that edit yourself if you want. If you encounter other similar errors, they can probably be fixed the same way (by adding the square brackets just inside the function's parentheses). I didn't intend to use any 2.4-only features, so let me know what comes up.

As for Tkinter, I believe it's part of the standard OS X installation of Python, so hopefully just fixing the syntax error will allow it to run successfully on OS X. (I don't remember installing it with macports, and "port installed" does not list it as installed. When I run any Tkinter code directly on my mac, it comes up in some OS X-specific aqua application, *not* through X11. The menu bar reads "Python" as the application name, and it has the dock icon of the Python Launcher rocketship. The path to that application is
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app
And the "About" lists copyright to Apple. So I'm pretty sure Tkinter is default install on OS X at least 10.4.)

If you do want to try upgrading python on OS X, check this page:
[www.python.org]

The linux error is certainly because Tkinter is not installed. Unfortunately I don't know anything about installing software on Linux. Presumably there's some kind of package manager you have to use. If you have sysadmins, your best bet is to ask them to install it. If you're running linux yourself, then I guess you have to install it yourself. Sorry I can't help more with that part...

-dave
Subject Author Posted

New program for inspecting motion

David Perlman June 19, 2008 01:41PM

Re: New program for inspecting motion

tom June 23, 2008 07:39PM

Re: New program for inspecting motion

David Henkel June 24, 2008 12:06PM

Re: New program for inspecting motion

Daniel Glen June 24, 2008 04:46PM

Re: New program for inspecting motion

David Perlman June 24, 2008 10:47PM

Re: New program for inspecting motion

MP Schroeder September 04, 2008 10:34AM

Feature request(s) (may need Bob)

Tom July 08, 2008 02:02PM

Re: Feature request(s) (may need Bob)

David Perlman July 10, 2008 05:18PM

Re: New program for inspecting motion

David Perlman October 25, 2008 01:13AM