Skip to content

Commit

Permalink
fix tests for rx90
Browse files Browse the repository at this point in the history
  • Loading branch information
ElStabilini committed Nov 28, 2024
1 parent 29a1296 commit 022240d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions tests/test_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,27 @@ def test_fit_command(runcard, update, tmp_path):


def test_extract_rabi():
assert extract_rabi(RabiAmplitudeData()) == (
assert extract_rabi(RabiAmplitudeData(rx90=False)) == (
"amp",
"Amplitude [dimensionless]",
rabi_amplitude_function,
)
assert extract_rabi(RabiLengthData()) == (
assert extract_rabi(RabiLengthData(rx90=False)) == (
"length",
"Time [ns]",
rabi_length_function,
)
with pytest.raises(RuntimeError):
extract_rabi(RabiAmplitudeEFData)


def test_extract_rabi():
assert extract_rabi(RabiAmplitudeData(rx90=True)) == (
"amp",
"Amplitude [dimensionless]",
rabi_amplitude_function,
)
assert extract_rabi(RabiLengthData(rx90=True)) == (
"length",
"Time [ns]",
rabi_length_function,
Expand Down

0 comments on commit 022240d

Please sign in to comment.