exopy_hqc_legacy/tasks/tasks/instr/lock_in_measure_task.py
def _post_setattr_mode(self, old, new):
        """ Update the database entries acording to the mode.

        """
        entries = self.database_entries.copy()
        for k in ('x', 'y', 'amplitude', 'phase'):
            if k in entries:
                del entries[k]
        if new == 'X':
            entries['x'] = 1.0
        elif new == 'Y':
            entries['y'] = 1.0
        elif new == 'X&Y':
            entries['x'] = 1.0
            entries['y'] = 1.0
        elif new == 'Amp':
            entries['amplitude'] = 1.0
        elif new == 'Phase':
            entries['phase'] = 1.0
        elif new == 'Amp&Phase':
            entries['amplitude'] = 1.0
            entries['phase'] = 1.0

        self.database_entries = entries
 Update the database entries acording to the mode.

        
Update the database entries acording to the mode.
Update the database entries acording to the mode .
def _post_setattr_mode(self, old, new):
        entries = self.database_entries.copy()
        for k in ('x', 'y', 'amplitude', 'phase'):
            if k in entries:
                del entries[k]
        if new == 'X':
            entries['x'] = 1.0
        elif new == 'Y':
            entries['y'] = 1.0
        elif new == 'X&Y':
            entries['x'] = 1.0
            entries['y'] = 1.0
        elif new == 'Amp':
            entries['amplitude'] = 1.0
        elif new == 'Phase':
            entries['phase'] = 1.0
        elif new == 'Amp&Phase':
            entries['amplitude'] = 1.0
            entries['phase'] = 1.0
        self.database_entries = entries
def _post_setattr_mode ( self , old , new ) : entries = self . database_entries . copy ( ) for k in ( 'x' , 'y' , 'amplitude' , 'phase' ) : if k in entries : del entries [ k ] if new == 'X' : entries [ 'x' ] = 1.0 elif new == 'Y' : entries [ 'y' ] = 1.0 elif new == 'X&Y' : entries [ 'x' ] = 1.0 entries [ 'y' ] = 1.0 elif new == 'Amp' : entries [ 'amplitude' ] = 1.0 elif new == 'Phase' : entries [ 'phase' ] = 1.0 elif new == 'Amp&Phase' : entries [ 'amplitude' ] = 1.0 entries [ 'phase' ] = 1.0 self . database_entries = entries
Update the database entries acording to the mode.
Update the database entries acording to the mode .
""" Update the database entries acording to the mode.

        """
self
old
new