Friday, April 28, 2006

munging readline in analysis

some programs such as IPython and faetures such as command line hcacking require gnu readline. Here is what I did under ubuntu to get it going

  1. all this is using the version of python that you use to run analysis (you may need to set the environment variables TCL_LIBRARY etc to get i to work (see $CCPNMR_TOP_DIR/bin/analysis)
  2. this is using ccpns own downloaded python
  3. change to $CCPNMR_TOP_DIR/python2.4/Python-2.4.2/Modules/
  4. edit Setup and uncomment line at about line 160 which reads 'readline readline.c -lreadline -ltermcap'
  5. cd to $CCPNMR_TOP_DIR/python2.4/Python-2.4.2
  6. run python install

Get ipython in analysis

  1. download ipython
  2. extract to your ccpnm directory tar ipython-0.7.1.fix1.tar.gz
  3. go to tar ipython-0.7.1
  4. type install where is the python you used to install analysis
  5. edit $CCPNMR_TOP_DIR/ccpnmr1.0/python/ccpnmr/analysis/
  6. at about line 52 after import Tkinter put import IPython on a new line
  7. at about line 105 add:
    from IPython.Shell import IPShellEmbed

    ipshell = IPShellEmbed()


Thursday, April 20, 2006

analysis tables widget

Two problems here
  1. the tables widget creates new rows on the fly (I guess) so the widths of the columns are constantly jumping around
  2. if you hide the rows in a table widget you get nice little + signs but which column is which when you want to reexpand them. Wouldn't a popup be better in general....

analysis spin systems editor

analysis, edit spin system dialog: you can display strips and display cells... So why is it missing a button with a name something like 'display resonances'.

Friday, April 07, 2006


Let there be light