Differences between revisions 2 and 3
Revision 2 as of 2011-07-01 16:54:31
Size: 69
Editor: SteveLudtke
Comment:
Revision 3 as of 2011-07-11 20:19:36
Size: 1062
Editor: SteveLudtke
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''''UNDER CONSTRUCTION''''' The EMAN2 python library has many similarities to EMAN1. The main image data class is even called EMData, just like EMAN1. The most significant change is
the change in naming convention from CamelCase to underscore_notation. That is, in EMAN1, you might say image.doFFT(), is image.do_fft() in EMAN2. The addition
of a modular system with full introspection for various classes of algorithms is also a big change. For example, rather than having a dedicated low-pass filter
method, in EMAN2, you would:

 * image.process_inplace("filter.lowpass.gauss",{"cutoff_freq":.125})

For the most part, the Python methods/functions directly follow the C++ counterparts, so [[http://blake.bcm.edu/eman2/doxygen_html|the autogenerated C++ documentation]] serves as a good reference for
python programmers as well.

For those learning, we are gradually adding both [[EMAN2/Tutorials|written tutorials]] as well as a set of [[EMAN2/VideoTutorials|video mini-tutorials]] which cover programming as well as basic use of EMAN2.

EMAN2 scripting for EMAN1 users

The EMAN2 python library has many similarities to EMAN1. The main image data class is even called EMData, just like EMAN1. The most significant change is the change in naming convention from CamelCase to underscore_notation. That is, in EMAN1, you might say image.doFFT(), is image.do_fft() in EMAN2. The addition of a modular system with full introspection for various classes of algorithms is also a big change. For example, rather than having a dedicated low-pass filter method, in EMAN2, you would:

  • image.process_inplace("filter.lowpass.gauss",{"cutoff_freq":.125})

For the most part, the Python methods/functions directly follow the C++ counterparts, so the autogenerated C++ documentation serves as a good reference for python programmers as well.

For those learning, we are gradually adding both written tutorials as well as a set of video mini-tutorials which cover programming as well as basic use of EMAN2.

EMAN2/Eman1Transition/Python (last edited 2022-02-18 00:40:05 by TunayDurmaz)