Skip to content

Commit

Permalink
Fix bug introduced in 1213e6d
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Jul 3, 2020
1 parent f316a13 commit ddc76bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_sequencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ def test_different_n_opers(self):
n_opers = opers[n_idx]
c_opers = opers[c_idx]
n_coeffs = np.ones((n_opers.shape[0], n_dt))
n_coeffs *= np.abs(rng.standard_normal(n_opers.shape[0] + (1,)))
c_coeffs = rng.standard_normal(c_opers.shape[0] + (n_dt,))
n_coeffs *= np.abs(rng.standard_normal((n_opers.shape[0], 1)))
c_coeffs = rng.standard_normal((c_opers.shape[0], n_dt))
dt = np.abs(rng.standard_normal(n_dt))
n_ids = np.array([''.join(l) for l in letters[n_idx]])
c_ids = np.array([''.join(l) for l in letters[c_idx]])
Expand All @@ -397,15 +397,15 @@ def test_different_n_opers(self):
more_n_opers = opers[more_n_idx]
more_n_coeffs = np.ones((more_n_opers.shape[0], n_dt))
more_n_coeffs *= np.abs(rng.standard_normal(
more_n_opers.shape[0] + (1,)))
(more_n_opers.shape[0], 1)))
more_n_ids = np.array([''.join(l) for l in letters[more_n_idx]])
pulse_3 = ff.PulseSequence(list(zip(c_opers, c_coeffs, c_ids)),
list(zip(more_n_opers, more_n_coeffs,
more_n_ids)),
dt)

nontrivial_n_coeffs = np.abs(rng.standard_normal(
n_opers.shape[0] + (n_dt,)))
(n_opers.shape[0], n_dt)))
pulse_4 = ff.PulseSequence(list(zip(c_opers, c_coeffs, c_ids)),
list(zip(more_n_opers,
nontrivial_n_coeffs,
Expand Down

0 comments on commit ddc76bf

Please sign in to comment.