Skip to content
Joshua Lande edited this page Jun 23, 2013 · 1 revision

This wiki page will contain useful links related to the program that I have amassed while building the it.

Introduction

In this wiki page, I will make a list of useful links related to this program.

latex2html bugs/hacks

I am using latex2html to build the tips_and_tricks.html documentation file that is distributed with the program. Here are some bugs that need to be fixed before latex2html can be used to build the documenation.

  • a bug in latex2html which can be fixed: http://www.nabble.com/Bug-424897:-latex2html:-mathend000--t3916999.html . I found math.pl on my system was installed to /usr/share/latex2html/versions/math.pl
  • Another bug: Flags to get latex2html to make nice output. This will make it do equations with more HTML and fewer images. I think it also puts everything onto one page and has less clutter:
latex2html tips_and_tricks.tex -html_version 4.0,math,unicode --no_navigation -split 0 -info 0
  • Another Bug: program wont work if there is a space in any directory names containing the tex file you are working with.

resources

Diffraction Data Files

  • The "pck" decompression code as found on the ccp4 website: [http://www.ccp4.ac.uk/dist/lib/src/pack_c.c] and [http://www.ccp4.ac.uk/dist/lib/src/pack_c.h]. I could not eve r get this code to run.
  • The "pck" decompression code as part of the DiffractionImage library [http://www.ccp4.ac.uk/ccp4bin/viewcvs/ccp4/lib/DiffractionImage/MAR/pck.c]. This is the code that I ended up using to do the real decompression. It looks identical to the other decompression code. I have no idea why I could get this and not the other code to work. Also not that DiffractionImage is GPLed code.
  • A description of the mar345 file format as described on the mar-usa.com website [http://www.mar-usa.com/support/downloads/mar345_formats.pdf]

Neat Python Links

  • The module that I used to do fast array processing in python: [http://numpy.scipy.org/numpy.pdf]. Technically, this is a more recent version the the module I actually used. I am using Numeric and this is numpy, but everything is basically the same.
  • An explanation of how to use nice setup.py scripts to build python extensions: [http://www.pyzine.com/Issue001/Section_Articles/article_EPwCPartI.html].
  • A very nice tutorial on building python extensions that can properly deal with Numeric data structures: [http://www.penzilla.net/tutorials/python/numpyc/]
  • A nice description of some Python coding standards [http://lists.osafoundation.org/pipermail/dev/2003-March/000479.html]. I should probably read through this more carefully!
  • Another fitting algorithm. This one is GPL and written in C: http://www.ics.forth.gr/%7elourakis/levmar/. I might end up using it if I wrap the fitting algorithm into C.
  • Build python code into a stand alone windows application: [http://www.py2exe.org/]. I am using this to build the windows executable.
  • Build python code into a stand alone mac application: [http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html]. I am using this to build my Mac application.
  • http://www.astro.washington.edu/owen/TkinterSummary.html Tkinter Summary (has some stuff on grow window callbacks, I think - Jim)

Python C Extensions

  • A discussion of how to avoid memory leaks when using numeric objects in C extensions: [http://mail.python.org/pipermail/python-list/2002-October/167549.html]. Very useful!

PIL and Tkinter

  • Get rid of stupid grey border in a Canvas: [http://mail.python.org/pipermail/python-list/2004-June/268575.html]
  • Awesome tkinter reference: [http://infohost.nmt.edu/tcc/help/pubs/tkinter.pdf]
  • Short introduction to Tkinter: [http://www.onlamp.com/pub/a/python/excerpts/chpt20/tkinter.html]
  • Python documentation on Tkinter: [http://docs.python.org/lib/module-Tkinter.html]
  • Another thorough tutorial on Tkinter: [http://infohost.nmt.edu/tcc/help/lang/python/tkinter.html]
  • PIL documentation: [http://www.pythonware.com/media/data/pil-handbook.pdf]
  • A description of putting PIL objects into a Tk gui: [http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/521918]
  • The Pmw EntryField widget: [http://mail.python.org/pipermail/python-list/2001-April/078811.html]
  • An explination of how to get the BLT to work [http://pmw.sourceforge.net/doc/dynamicloader.html]

Fitting

  • The fitting algorithm that I ended up using: [http://www.ics.forth.gr/~lourakis/levmar/]
  • I gave up on this fitting algorithm because I couldn't get it to properly minimize my functions. Also, the pure C fitting code is probably faster: [http://cars9.uchicago.edu/software/python/mpfit.html]

Various Other Useful Stuff

  • latexdraw for making pstricks diagrams to put in the documentation: [http://latexdraw.sourceforge.net/index.html]

Clone this wiki locally