Skip to content

Commit

Permalink
fix: fix new mdaexample without channels (#221)
Browse files Browse the repository at this point in the history
fix: fix example without channels
  • Loading branch information
tlambert03 authored Oct 9, 2023
1 parent 94d36fa commit 81cb02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mda_widget2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _on_frame(self, image, event: MDAEvent) -> None:
"""Called each time a frame is acquired."""
self.current_event.setText(
f"index: {event.index}\n"
f"channel: {event.channel.config}\n"
f"channel: {getattr(event.channel, 'config', 'None')}\n"
f"exposure: {event.exposure}\n"
f"pos_name: {event.pos_name}\n"
f"xyz: ({event.x_pos}, {event.y_pos}, {event.z_pos})\n"
Expand Down

0 comments on commit 81cb02d

Please sign in to comment.