Показаны сообщения с ярлыком Python. Показать все сообщения
Показаны сообщения с ярлыком Python. Показать все сообщения

08 июня 2011

Python packages for Astro

NumPy - adds fast multidimensional array management capability to python.
PyEphem - a library to compute sky position of a generic object or Solar System planets.
PyFITS - an advanced library to handle FITS files.
asciitable - a small python library to efficiently manage, of course, ASCII tables.
ATpy - Astronomical tables in python. Both previous library are used by a general python library to manage tables in many formats of interest in astronomy.
matplotlib (freetype , libpng )
gnuplot-py (gnuplot) - gnuplot python wrapper.
PIL - Python Imaging Library.
astLib -  a python library to deal with various astronomical problems (cosmology, WCS for FITS files, etc.).
odict - to create dictionaries saving the insertion order (first inserted, first listed).
fftw - for discrete fast Fourier transform management.
SciPy - the rather complex and heavy package Scientific Python.

13 января 2011

Python : grid ....

Or if you use the gridder you can remove things temporary and restore
them again easily:

  x.grid(row=0....)
  x.grid_remove() # to temporarily remove
  x.grid() # to restore using the original grid settings
  x.grid_forget() # to remove permanently

(remove is not supported by the packer)

19 ноября 2010

Python : IDLE : комментируем mainloop !

Замечание : Не следует выполнять программы питона из под IDLE. IDLE само является приложением Tkinter, со своим собственным обработчиком "mainloop", который будет конфликтовать с mainloop ваших программ. Если всё же очень хочется запускать свои программы под IDLE, тогда - в каждой проге - нужно закоментить строку "mainloop" перед выполнением.

~~Steve Ferg