Skip to content

Commit

Permalink
Update printed device specs
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri committed Jul 13, 2023
1 parent bc94c2a commit 05b23bc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pulser-core/pulser/devices/_device_datacls.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,15 @@ def _specs(self, for_docs: bool = False) -> str:
),
f" - Maximum layout filling fraction: {self.max_layout_filling}",
f" - SLM Mask: {'Yes' if self.supports_slm_mask else 'No'}",
"\nChannels:",
]

ch_lines = []
if self.max_sequence_duration is not None:
lines.append(
" - Maximum sequence duration: "
f"{self.max_sequence_duration} ns"
)

ch_lines = ["\nChannels:"]
for name, ch in self.channels.items():
if for_docs:
ch_lines += [
Expand All @@ -552,6 +557,7 @@ def _specs(self, for_docs: bool = False) -> str:
+ r"- Maximum :math:`|\delta|`:"
+ f" {ch.max_abs_detuning:.4g} rad/µs"
),
f"\t- Minimum average amplitude: {ch.min_avg_amp} rad/µs",
]
if ch.addressing == "Local":
ch_lines += [
Expand Down

0 comments on commit 05b23bc

Please sign in to comment.