Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When loading two different cfg one after another MMShuttersWidget gives an error #270

Open
fdrgsp opened this issue Jul 28, 2023 · 0 comments

Comments

@fdrgsp
Copy link
Contributor

fdrgsp commented Jul 28, 2023

opened from #250.

Loading two different cfg one after another will result in a error in the MMShuttersWidget (e.g. the demo config followed by real scope config).

This issue (that does not prevent the correct loading of the cfg) is here in the MMShuttersWidget

if not self._mmc.getLoadedDevicesOfType(DeviceType.ShutterDevice):
# FIXME:
# ShuttersWidget has not been tested with an empty device label...
# it raises all sorts of errors.
# if we want to have a "placeholder" widget, it needs more testing.
# empty_shutter = ShuttersWidget("")
# self.layout().addWidget(empty_shutter)
return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant