qcodes/instrument_drivers/QuantumDesign/DynaCoolPPMS/DynaCool.py
def ramp(self, mode: str = "blocking") -> None:
        """
        Ramp the field to the value given by the `field_target` parameter

        Args:
            mode: how to ramp, either "blocking" or "non-blocking". In
                "blocking" mode, this function does not return until the
                target field has been reached. In "non-blocking" mode, this
                function immediately returns.
        """
        if mode not in ['blocking', 'non-blocking']:
            raise ValueError('Invalid ramp mode received. Ramp mode must be '
                             'either "blocking" or "non-blocking", received '
                             f'"{mode}"')

        target_in_tesla = self.field_target()
        # the target must be converted from T to Oersted
        target_in_oe = target_in_tesla*1e4

        start_field = self.field_measured()
        ramp_range = np.abs(start_field - target_in_tesla)
        # as the second argument is zero relative tolerance has no effect.
        if np.allclose([ramp_range], 0, rtol=0, atol=self.field_tolerance()):
            return

        if mode == "blocking":
            self._do_blocking_ramp(target_in_tesla, start_field)
        else:
            self._field_setter(param='field_target',
                               value=target_in_oe)

        Ramp the field to the value given by the `field_target` parameter

        Args:
            mode: how to ramp, either "blocking" or "non-blocking". In
                "blocking" mode, this function does not return until the
                target field has been reached. In "non-blocking" mode, this
                function immediately returns.
        
Ramp the field to the value given by the `field_target` parameter
Ramp the field to the value given by the ` field_target ` parameter
def ramp(self, mode: str = "blocking") -> None:
        if mode not in ['blocking', 'non-blocking']:
            raise ValueError('Invalid ramp mode received. Ramp mode must be '
                             'either "blocking" or "non-blocking", received '
                             f'"{mode}"')
        target_in_tesla = self.field_target()
        target_in_oe = target_in_tesla*1e4
        start_field = self.field_measured()
        ramp_range = np.abs(start_field - target_in_tesla)
        if np.allclose([ramp_range], 0, rtol=0, atol=self.field_tolerance()):
            return
        if mode == "blocking":
            self._do_blocking_ramp(target_in_tesla, start_field)
        else:
            self._field_setter(param='field_target',
                               value=target_in_oe)
def ramp ( self , mode : str = "blocking" ) -> None : if mode not in [ 'blocking' , 'non-blocking' ] : raise ValueError ( 'Invalid ramp mode received. Ramp mode must be ' 'either "blocking" or "non-blocking", received ' f'"{mode}"' ) target_in_tesla = self . field_target ( ) target_in_oe = target_in_tesla * 1e4 start_field = self . field_measured ( ) ramp_range = np . abs ( start_field - target_in_tesla ) if np . allclose ( [ ramp_range ] , 0 , rtol = 0 , atol = self . field_tolerance ( ) ) : return if mode == "blocking" : self . _do_blocking_ramp ( target_in_tesla , start_field ) else : self . _field_setter ( param = 'field_target' , value = target_in_oe )
Ramp the field to the value given by the `field_target` parameter
Ramp the field to the value given by the ` field_target ` parameter
"""
        Ramp the field to the value given by the `field_target` parameter

        Args:
            mode: how to ramp, either "blocking" or "non-blocking". In
                "blocking" mode, this function does not return until the
                target field has been reached. In "non-blocking" mode, this
                function immediately returns.
        """ # the target must be converted from T to Oersted # as the second argument is zero relative tolerance has no effect.
self
mode
str
None