Made phase table generation compatible with nqrduck.

This commit is contained in:
jupfi 2024-06-09 20:24:55 +02:00
parent f11dcbd15f
commit 1c01683f20
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class PhaseTable:
logger.info(phase_table) logger.info(phase_table)
# Now get the maximum phase group # 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}") logger.info(f"Max phase group: {max_phase_group}")

View file

@ -155,7 +155,7 @@ class TXPulse(PulseParameter):
phase = self.get_option_by_name(self.TX_PHASE).value 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): class RXReadout(PulseParameter):