Skip to content

Commit

Permalink
fix: Comment sweepers with their type as well
Browse files Browse the repository at this point in the history
In q1asm programs
  • Loading branch information
alecandido committed Feb 19, 2025
1 parent 7b7312e commit 942e328
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/qibolab/_core/instruments/qblox/mock/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ def sequences(self) -> dict[tuple[int, int], Optional[dict]]:
for k, v in {
(mod.slot_idx, seq.idx): next(
iter(
[
call["args"][0]
for call in seq.register["calls"]
if call["name"] == "sequence"
]
call["args"][0]
for call in seq.register["calls"]
if call["name"] == "sequence"
),
None,
)
Expand Down
4 changes: 3 additions & 1 deletion src/qibolab/_core/instruments/qblox/sequence/sweepers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class Param(Model):
@property
def description(self):
"""Textual description, used in some accompanying comments."""
return f"sweeper {self.sweeper + 1} (pulse: {self.pulse})"
return (
f"sweeper {self.sweeper + 1} (pulse: {self.pulse}, kind: {self.kind.name})"
)


Params = Sequence[tuple[int, Param]]
Expand Down

0 comments on commit 942e328

Please sign in to comment.