Skip to content

Commit

Permalink
chore: remove special character from MDASequence.__str__ (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Aug 4, 2023
1 parent b7cdd19 commit fe1c571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/useq/_mda_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ def _check_order(
raise ValueError(err)

def __str__(self) -> str:
return "Multi-Dimensional Acquisition ▶ " + ", ".join(self.sizes)
sizes = ", ".join(f"n{k}={v}" for k, v in self.sizes.items() if v)
return f"Multi-Dimensional Acquisition with: {sizes}"

@property
def shape(self) -> Tuple[int, ...]:
Expand Down

0 comments on commit fe1c571

Please sign in to comment.