sel_utilities/sel_utilities.py
def _mag_ang_to_complex(q, d):
    """ Combines magnitude and angle of quantity to a complex number and adds
        to the dict.
        Parameters:
            q - String of quantity to be combined.
            d - Dict of quantities

        Example:
            Given d = {'VA_MAG': 1.0, 'VA_ANG': 180}
            mag_ang_to_complex('VA', d)
            will compute the complex number of 1.0 at an angle of 180 degrees
            and add new key value pair 'VA': -1 to d if 'VA' does not exist or
            update it if it does exist.
    """
    d[q] = cmath.rect(d[q+'_MAG'], math.radians(d[q+'_ANG']))
 Combines magnitude and angle of quantity to a complex number and adds
        to the dict.
        Parameters:
            q - String of quantity to be combined.
            d - Dict of quantities

        Example:
            Given d = {'VA_MAG': 1.0, 'VA_ANG': 180}
            mag_ang_to_complex('VA', d)
            will compute the complex number of 1.0 at an angle of 180 degrees
            and add new key value pair 'VA': -1 to d if 'VA' does not exist or
            update it if it does exist.
    
Combines magnitude and angle of quantity to a complex number and adds
to the dict.
Parameters:
q - String of quantity to be combined.
d - Dict of quantities


Combines magnitude and angle of quantity to a complex number and adds to the dict . Parameters : q - String of quantity to be combined . d - Dict of quantities
def _mag_ang_to_complex(q, d):
    d[q] = cmath.rect(d[q+'_MAG'], math.radians(d[q+'_ANG']))
def _mag_ang_to_complex ( q , d ) : d [ q ] = cmath . rect ( d [ q + '_MAG' ] , math . radians ( d [ q + '_ANG' ] ) )
Combines magnitude and angle of quantity to a complex number and adds
to the dict.
Combines magnitude and angle of quantity to a complex number and adds to the dict .
""" Combines magnitude and angle of quantity to a complex number and adds
        to the dict.
        Parameters:
            q - String of quantity to be combined.
            d - Dict of quantities

        Example:
            Given d = {'VA_MAG': 1.0, 'VA_ANG': 180}
            mag_ang_to_complex('VA', d)
            will compute the complex number of 1.0 at an angle of 180 degrees
            and add new key value pair 'VA': -1 to d if 'VA' does not exist or
            update it if it does exist.
    """
q
d