def METHOD_NAME(self):
    times = np.linspace(0, 5e-6, 41)
    for f_fix_pt in [50e-6, -50e-6]:
        for RO_pulse_type in ['Gated_MW_RO_pulse', 'MW_IQmod_pulse_tek']:
            self.RO_pars['pulse_type'] = RO_pulse_type
            f_detuning = 300e3  # 300 kHz detuning
            # Sequence with artificial detuning specified in Hz
            seq, el_list = sqs.Ramsey_seq(times, self.pulse_pars,
                                          self.RO_pars,
                                          artificial_detuning=f_detuning,
                                          cal_points=True,
                                          verbose=False,
                                          upload=False,
                                          return_seq=True)
            self.assertEqual(len(times), len(seq.elements))
            self.assertEqual(len(times), len(el_list))
            for i, el in enumerate(el_list):
                if RO_pulse_type == 'MW_IQmod_pulse_tek':
                    t_RO = el.effective_pulse_start_time(
                        'RO_tone-0', 'ch1')
                else:
                    t_RO = el.effective_pulse_start_time(
                        'RO_marker-0', 'ch1')
                t_ROm = el.effective_pulse_start_time(
                    'Acq-trigger-0', 'ch1')
                self.assertAlmostEqual(t_RO, t_ROm, places=10)
                # test if fix point put pulses at the right spot.
                self.assertAlmostEqual(t_RO, np.round(t_RO/1e-6) * 1e-6)
                # Check Ramsey pulse spacing
                if i < (len(times)-4):
                    t0 = el.effective_pulse_start_time(
                        'SSB_DRAG_pulse_0-0', 'ch1')
                    t1 = el.effective_pulse_start_time(
                        'SSB_DRAG_pulse_1-0', 'ch1')
                    self.assertAlmostEqual(t1-t0
                                           ,times[i]+ self.pulse_pars['nr_sigma']*self.pulse_pars['sigma']
                                           , places=10)
                    p0 = el.pulses['SSB_DRAG_pulse_0-0']
                    self.assertEqual(p0.phase, 0)
                    p1 = el.pulses['SSB_DRAG_pulse_1-0']
                    exp_phase = (360*f_detuning*(t1-t0-self.pulse_pars['nr_sigma']*self.pulse_pars['sigma'])) % 360
                    if exp_phase == 360:
                        exp_phase = 0
                    self.assertAlmostEqual(p1.phase, exp_phase, places=3)
                else:
                    # Calibration points do not have two pulses
                    with self.assertRaises(KeyError):
                        t1 = el.effective_pulse_start_time(
                            'pulse_1-0', 'ch1')