hyperscreen/hypercore.py
def calculate_fp_fb(self):
        """Method to calculate the Fine Position (f_p) and normalized central tap amplitude (fb) for the HRC U- and V- axes.

        :return: fp_u, fb_u, fp_v, fb_v; the calculated fine positions and normalized central tap amplitudes, respectively, for the HRC U- and V- axes of the I or S detector
        :rtype: float
        """

        a_u = self.data["au1"]  # otherwise known as "a1"
        b_u = self.data["au2"]  # "a2"
        c_u = self.data["au3"]  # "a3"

        a_v = self.data["av1"]
        b_v = self.data["av2"]
        c_v = self.data["av3"]

        with np.errstate(invalid='ignore'):
            # Do the U axis
            fp_u = ((c_u - a_u) / (a_u + b_u + c_u))
            fb_u = b_u / (a_u + b_u + c_u)

            # Do the V axis
            fp_v = ((c_v - a_v) / (a_v + b_v + c_v))
            fb_v = b_v / (a_v + b_v + c_v)

        return fp_u, fb_u, fp_v, fb_v
Method to calculate the Fine Position (f_p) and normalized central tap amplitude (fb) for the HRC U- and V- axes.

        :return: fp_u, fb_u, fp_v, fb_v; the calculated fine positions and normalized central tap amplitudes, respectively, for the HRC U- and V- axes of the I or S detector
        :rtype: float
        
Method to calculate the Fine Position (f_p) and normalized central tap amplitude (fb) for the HRC U- and V- axes.
Method to calculate the Fine Position ( f_p ) and normalized central tap amplitude ( fb ) for the HRC U - and V - axes .
def calculate_fp_fb(self):
        a_u = self.data["au1"]  
        b_u = self.data["au2"]  
        c_u = self.data["au3"]  
        a_v = self.data["av1"]
        b_v = self.data["av2"]
        c_v = self.data["av3"]
        with np.errstate(invalid='ignore'):
            fp_u = ((c_u - a_u) / (a_u + b_u + c_u))
            fb_u = b_u / (a_u + b_u + c_u)
            fp_v = ((c_v - a_v) / (a_v + b_v + c_v))
            fb_v = b_v / (a_v + b_v + c_v)
        return fp_u, fb_u, fp_v, fb_v
def calculate_fp_fb ( self ) : a_u = self . data [ "au1" ] b_u = self . data [ "au2" ] c_u = self . data [ "au3" ] a_v = self . data [ "av1" ] b_v = self . data [ "av2" ] c_v = self . data [ "av3" ] with np . errstate ( invalid = 'ignore' ) : fp_u = ( ( c_u - a_u ) / ( a_u + b_u + c_u ) ) fb_u = b_u / ( a_u + b_u + c_u ) fp_v = ( ( c_v - a_v ) / ( a_v + b_v + c_v ) ) fb_v = b_v / ( a_v + b_v + c_v ) return fp_u , fb_u , fp_v , fb_v
Method to calculate the Fine Position (f_p) and normalized central tap amplitude (fb) for the HRC U- and V- axes.
Method to calculate the Fine Position ( f_p ) and normalized central tap amplitude ( fb ) for the HRC U - and V - axes .
"""Method to calculate the Fine Position (f_p) and normalized central tap amplitude (fb) for the HRC U- and V- axes.

        :return: fp_u, fb_u, fp_v, fb_v; the calculated fine positions and normalized central tap amplitudes, respectively, for the HRC U- and V- axes of the I or S detector
        :rtype: float
        """ # otherwise known as "a1" # "a2" # "a3" # Do the U axis # Do the V axis
fp_u, fb_u, fp_v, fb_v; the calculated fine positions and normalized central tap amplitudes, respectively, for the HRC U- and V- axes of the I or S detector
fp_u fb_u fp_v fb_v ; the calculated fine positions and normalized central tap amplitudes respectively for the HRC U - and V - axes of the I or S detector
float
self