From 50ae13f89a63dfb39bc9bdd84936883dd8dc03c6 Mon Sep 17 00:00:00 2001 From: jupfi Date: Thu, 6 Jun 2024 19:49:19 +0200 Subject: [PATCH] Fixed a bug with phase cycles with different lengths. --- src/quackseq/phase_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quackseq/phase_table.py b/src/quackseq/phase_table.py index 73bf148..630e4e1 100644 --- a/src/quackseq/phase_table.py +++ b/src/quackseq/phase_table.py @@ -96,7 +96,7 @@ class PhaseTable: for parameter, phase_values in parameters.items(): if len(phase_values) < max_phase_values: phase_values = np.tile( - phase_values, max_phase_values // len(phase_values) + phase_values, int(np.ceil(max_phase_values / len(phase_values))) ) pulse_phases[parameter] = phase_values logger.info(