Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/c/x/CXPhasing-0.3.0/cxphasing/CXPhasing.py   CXPhasing(Download)
import CXParams as CXP
from CXData import CXData
from CXData import fft2, ifft2, angle, exp, fftshift, conj, abs
from CXData import log as nlog
import time
        """
        if not (self.total_its + i):
            self.probe_mod_squared = abs(self.probe) ** 2.
 
        d1, d2 = self.positions.data
            self.probe.normalise()
 
        self.probe_mod_squared = abs(self.probe) ** 2.
        self.log.info('{:3.2f} seconds elapsed updating probe.'.format(time.time() - then))
        self.fast_db_queue['probe_update_elapsed_secs'] = (self.itnum, time.time() - then)
    def update_probe_map(self):
        p2 = self.p2
        probe_mod_squared = abs(self.probe) ** 2.
        self.probe_mod_squared_map = CXData(data=sp.zeros((self.ob_p, self.ob_p)))
        d1, d2 = self.positions.data
    def update_object_map(self):
        p2 = self.p2
        ob_mod_squared = abs(self.object) ** 2.
        self.ob_mod_squared_map = CXData(data=sp.zeros((self.p, self.p)))
        d1, d2 = self.positions.data