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

red/experiment.py #39

Closed
Taimin opened this issue Jun 10, 2020 · 2 comments
Closed

red/experiment.py #39

Taimin opened this issue Jun 10, 2020 · 2 comments

Comments

@Taimin
Copy link
Contributor

Taimin commented Jun 10, 2020

Hi Stef,
I am playing with some features in instamatic under simulation mode.
After I used RED data collection, an error occurred:

Traceback (most recent call last):
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1705, in __call__
    return self.func(*args)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 3442, in __call__
    self.__callback(self.__value, *args)
  File "D:\TEM_Automation\repository\instamatic\instamatic\gui\ctrl_frame.py", line 163, in set_mode
    self.ctrl.mode.set(self.var_mode.get())
AttributeError: 'str' object has no attribute 'set'

I found that in instamatic/experiments/red/experiment.py

if image_mode != 'diff':
    ctrl.mode = image_mode

should be changed to:

if image_mode != 'diff':
    ctrl.mode.set(image_mode)
@Taimin
Copy link
Contributor Author

Taimin commented Jun 10, 2020

#40

@stefsmeets
Copy link
Member

Hi @Taimin,
Well spotted, thanks for the fix!

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

2 participants