예제 #1
0
    def __init__(self):
        self.objects = {
            "peakmerger": peakmerge.peakmerger(),
            "transformer": transformer.transformer(),
            "indexer": indexing.indexer(),
            "solver": eps_sig_solver.solver(),
        }

        self.commandscript = \
"""# Create objects to manipulate - they hold your data
예제 #2
0
 def __init__(self, fname=None):
     self.pm = peakmerger()
     self.fname = fname
     self.pm.readpeaks(fname)
     self.select_image(0)
     self.drawUI()
예제 #3
0
파일: make_gve.py 프로젝트: osholm/xfab
#!/usr/bin/env python

# Create objects to manipulate - they hold your data
#
from __future__ import absolute_import
import sys
from ImageD11 import peakmerge, indexing, transformer
mypeakmerger = peakmerge.peakmerger()
mytransformer = transformer.transformer()
myindexer = indexing.indexer()
#
# Your work starts here:
#
filename = sys.argv[1]
outfile =  sys.argv[2]
parfile =  sys.argv[3]
mytransformer.loadfiltered(  filename )
mytransformer.loadfileparameters( parfile )
mytransformer.compute_tth_eta( )
mytransformer.getcolumn(  'tth' )
mytransformer.getcolumn(  'eta' )
mytransformer.addcellpeaks( )
mytransformer.computegv( )
mytransformer.savegv(  outfile )