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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/e/d/edna-HEAD/diffractionCTv1/plugins/EDPluginDCTWriteSinogram-v1.0/plugins/EDPluginDCTWriteSinogramv1_0.py   edna(Download)
                    if self.pydProcessSinograms[ pystrSinogramFullPath ] == "PhotonFlux":
                        EDVerbose.DEBUG("PhotonFlux= %s " % self.powderIntegrator.pyfPhotonFlux)
                        borg2DImageWriter.set(filename=pystrSinogramFullPath, position=(self.pyintYpos, self.pyintXpos), value=self.powderIntegrator.pyfPhotonFlux)
                    elif self.pydProcessSinograms[ pystrSinogramFullPath ] == "IntegratedRaw":
                        EDVerbose.DEBUG("IntegratedRaw= %s " % self.powderIntegrator.integrate())
                        borg2DImageWriter.set(filename=pystrSinogramFullPath, position=(self.pyintYpos, self.pyintXpos), value=self.powderIntegrator.integrate())
                    elif self.pydProcessSinograms[ pystrSinogramFullPath ] == "IntegratedCor":
                        EDVerbose.DEBUG("IntegratedCor= %s " % (self.powderIntegrator.integrate() / self.powderIntegrator.pyfPhotonFlux))
                        borg2DImageWriter.set(filename=pystrSinogramFullPath, position=(self.pyintYpos , self.pyintXpos), value=(self.powderIntegrator.integrate() / self.powderIntegrator.pyfPhotonFlux))
                    if   pystrSinogramFullPath[-3:] == "Raw" :
                        EDVerbose.DEBUG("Raw %s - %s= %s " % (self.pydProcessSinograms[ pystrSinogramFullPath ][0], self.pydProcessSinograms[ pystrSinogramFullPath ][1], self.powderIntegrator.integrate(*tuple(self.pydProcessSinograms[ pystrSinogramFullPath ]))))
                        borg2DImageWriter.set(filename=pystrSinogramFullPath, position=(self.pyintYpos, self.pyintXpos), value=(self.powderIntegrator.integrate(*tuple(self.pydProcessSinograms[ pystrSinogramFullPath ]))))
                    elif pystrSinogramFullPath[-3:] == "Cor"  :
                        EDVerbose.DEBUG("Cor %s - %s= %s " % (self.pydProcessSinograms[ pystrSinogramFullPath ][0], self.pydProcessSinograms[ pystrSinogramFullPath ][1], self.powderIntegrator.integrate(*tuple(self.pydProcessSinograms[ pystrSinogramFullPath ])) / self.powderIntegrator.pyfPhotonFlux))
                        borg2DImageWriter.set(filename=pystrSinogramFullPath, position=(self.pyintYpos , self.pyintXpos), value=(self.powderIntegrator.integrate(*tuple(self.pydProcessSinograms[ pystrSinogramFullPath ])) / self.powderIntegrator.pyfPhotonFlux))