Skip to content

Commit

Permalink
Minor formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Coolbeth committed Jan 30, 2024
1 parent 6b95a04 commit 80d5bf7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/unit/test_quilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,17 +495,7 @@ def def_frame(
) -> DefFrame:
optional_args = {k: v
for k, v in locals().items()
if k not in["self", "frame"] and v is not None}
# optional_args = [
# arg
# for arg in [direction,
# initial_frequency,
# hardware_object,
# sample_rate,
# center_frequency,
# channel_delay]:
# if arg is not None
# ]
if k not in ["self", "frame"] and v is not None}
return DefFrame(frame, **optional_args)

def test_out(self, def_frame: DefFrame, snapshot: SnapshotAssertion):
Expand All @@ -518,7 +508,6 @@ def test_out(self, def_frame: DefFrame, snapshot: SnapshotAssertion):

def test_str(self, def_frame: DefFrame, snapshot: SnapshotAssertion):
quil_lines = str(def_frame).splitlines()
print(quil_lines)
assert quil_lines[0] == snapshot
assert set(quil_lines[1:]) == snapshot

Expand Down

0 comments on commit 80d5bf7

Please sign in to comment.