예제 #1
0
 def updatePolarizationFactor(self):
     if self.rb is not None:
         self.pf = polarization_factor(self.rb.pixel_rad(),
                                       self.rb.pixel_phi(),
                                       self.parent.detectorDistance *
                                       1e6)  # convert to um
         if self.parent.args.v >= 1: print "Done updatePolarizationFactor"
예제 #2
0
 def updatePolarizationFactor(
         self):  # FIXME: change to vertical polarization after July 2020
     if self.rb is not None:
         self.pf = polarization_factor(self.rb.pixel_rad(),
                                       self.rb.pixel_phi() + 90,
                                       self.parent.detectorDistance *
                                       1e6)  # convert to um
         if self.parent.args.v >= 1: print("Done updatePolarizationFactor")
예제 #3
0
 def updatePolarizationFactor(self):
     self.pf = polarization_factor(self.rb.pixel_rad(), self.rb.pixel_phi(),
                                   self.distance * 1e6)  # convert to um
예제 #4
0
 def updatePolarizationFactor(self):
     if self.rb is not None:
         self.pf = polarization_factor(self.rb.pixel_rad(), self.rb.pixel_phi(), self.parent.detectorDistance*1e6) # convert to um
         if self.parent.args.v >= 1: print "Done updatePolarizationFactor"
예제 #5
0
 def updatePolarizationFactor(self):
     # FIXME: handle vertical/horizontal polarization properly
     self.pf = polarization_factor(self.rb.pixel_rad(),
                                   self.rb.pixel_phi() + 90,
                                   self.distance * 1e6)  # convert to um
예제 #6
0
 def updatePolarizationFactor(self, detectorDistance_in_m):
     if self.rb is not None:
         self.pf = polarization_factor(self.rb.pixel_rad(),
                                       self.rb.pixel_phi(),
                                       detectorDistance_in_m *
                                       1e6)  # convert to um
예제 #7
0
 def updatePolarizationFactor(self, detectorDistance_in_m):
     if self.rb is not None:
         self.pf = polarization_factor(self.rb.pixel_rad(), self.rb.pixel_phi(), detectorDistance_in_m*1e6) # convert to um
예제 #8
0
 def updatePolarizationFactor(self):
     self.pf = polarization_factor(self.rb.pixel_rad(), self.rb.pixel_phi(), self.distance * 1e6)  # convert to um