diff --git a/src/quackseq/phase_table.py b/src/quackseq/phase_table.py index 1131566..d381841 100644 --- a/src/quackseq/phase_table.py +++ b/src/quackseq/phase_table.py @@ -63,7 +63,7 @@ class PhaseTable: logger.info(phase_table) # Now get the maximum phase group - max_phase_group = max([phase_group for phase_group, _ in phase_table.values()]) + max_phase_group = int(max([phase_group for phase_group, _ in phase_table.values()])) logger.info(f"Max phase group: {max_phase_group}") diff --git a/src/quackseq/pulseparameters.py b/src/quackseq/pulseparameters.py index 4043529..212e487 100644 --- a/src/quackseq/pulseparameters.py +++ b/src/quackseq/pulseparameters.py @@ -155,7 +155,7 @@ class TXPulse(PulseParameter): phase = self.get_option_by_name(self.TX_PHASE).value - return (np.linspace(0, 360, n_phase_cycles, endpoint=False) + phase) % 360 + return (np.linspace(0, 360, int(n_phase_cycles), endpoint=False) + phase) % 360 class RXReadout(PulseParameter):