Differences between revisions 3 and 4
Revision 3 as of 2007-02-28 21:19:39
Size: 1334
Editor: bcm-11-173
Comment:
Revision 4 as of 2007-02-28 22:54:30
Size: 1802
Editor: bethesda-hyatt-host3
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe EMAN1To2Translation here. This is a mapping of EMAN1 EMData methods -> EMAN2
Line 6: Line 6:
||.calcCCF|| ||
||.copy|| ||
||.doFFT||.do_fft||
||.calcCCF||.calc_ccf||
||.copy||.copy||
||.doFFT||.do_fft or .do_fft_inplace||
Line 10: Line 10:
||.gimmeFFT|| ||
||.MEAN|| ||
||.MinLoc|| ||
||.readImage||.read_image||
||.realFilter|| ||
||.ri2ap|| ||
||.rotateAndTranslate|| ||
||.setRAlign|| ||
||.gimmeFFT||Not necessary, no FFT caching ||
||.Mean||.get_attr("mean") or .get_attr_dict()["mean"] ||
||.MinLoc||.calc_min_index or .calc_min_location()||
||.readImage||.read_image or EMData(path,n) constructor||
||.realFilter||.process or .process_inplace, dump_processors()||
||.ri2ap||.ri2ap||
||.rotateAndTranslate|| .rot_scale_trans, .rot_scale_trans2D, others. see Transform class||
||.setRAlign||no equivalent||
Line 19: Line 19:
||.setTAlign|| || ||.setTAlign||no equivalent||
Line 21: Line 21:
||.Sigma|| ||
||.toCorner|| ||
||.update|| ||
||.Sigma||see .Mean()||
||.toCorner||.process_inplace("eman1.xform.fourierorigin")||
||.update||.update||
Line 26: Line 26:
||.x(y)(z)Size||.get_x(y)(z)size|| ||.x(y)(z)Size||.get_(x,y,z)size||
Line 28: Line 28:
|| ||.set_complex|| || ||.set_complex, note new constructor EMData(nx,ny,nz,real=1) if real=0 image will be complex||

This is a mapping of EMAN1 EMData methods -> EMAN2

I am compiling a list of function and procedure calls that I know are, or maybe just ought to be, equivalent between EMAN and EMAN2. Unless otherwise noted, the argument lists are the same between the two, so this table should be able to be used to SUBSTITUTE references in python scripts between the two packages. There is a theme, but it is not strictly followed! For historical purposes, the EMAN call is first, then the EMAN2 equivalent. I'll try to keep it alphbetical in the EMAN list. Maybe we should have the reverse list, too. Please feel free to add the equivalents where I don't have them. I am only working from two or three scripts that don't have mutually equivalent calls in them. Also feel free to pretty up the formatting! Cheers.

EMAN

EMAN2

.calcCCF

.calc_ccf

.copy

.copy

.doFFT

.do_fft or .do_fft_inplace

.EMData

.EMData

.gimmeFFT

Not necessary, no FFT caching

.Mean

.get_attr("mean") or .get_attr_dict()["mean"]

.MinLoc

.calc_min_index or .calc_min_location()

.readImage

.read_image or EMData(path,n) constructor

.realFilter

.process or .process_inplace, dump_processors()

.ri2ap

.ri2ap

.rotateAndTranslate

.rot_scale_trans, .rot_scale_trans2D, others. see Transform class

.setRAlign

no equivalent

.setSize

.set_size

.setTAlign

no equivalent

.setValueAt

.set_value_at

.Sigma

see .Mean()

.toCorner

.process_inplace("eman1.xform.fourierorigin")

.update

.update

.valueAt

.get_value_at

.writeImage

.write_image

.x(y)(z)Size

.get_(x,y,z)size

.zero

.to_zero

.set_complex, note new constructor EMData(nx,ny,nz,real=1) if real=0 image will be complex

.set_ri

.do_ift

EMAN1To2Translation (last edited 2010-03-27 00:26:03 by jgalaz)