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

Exception when creating overlay #110

Closed
csatt opened this issue Jul 16, 2020 · 0 comments
Closed

Exception when creating overlay #110

csatt opened this issue Jul 16, 2020 · 0 comments
Assignees
Labels

Comments

@csatt
Copy link
Owner

csatt commented Jul 16, 2020

This is an obscure case.

In Wizard:
- Select a run
- "Change Title" -> "Foo"
- "Change Title" -> "None"
- Select that run and another
- "Overlay"

Unexpected error: <type 'exceptions.AttributeError'>
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1536, in call
return self.func(*args)
File "./IV_Swinger2_gui.py", line 3565, in overlay_runs
self.plot_overlay_and_display()
File "./IV_Swinger2_gui.py", line 4109, in plot_overlay_and_display
self.plot_overlay()
File "./IV_Swinger2_gui.py", line 4075, in plot_overlay
self.get_overlay_curve_names()
File "./IV_Swinger2_gui.py", line 4121, in get_overlay_curve_names
name = self.master.props.overlay_names[dts].decode("utf-8")
AttributeError: 'NoneType' object has no attribute 'decode'

@csatt csatt added the bug label Jul 16, 2020
@csatt csatt self-assigned this Jul 16, 2020
csatt added a commit that referenced this issue Jul 16, 2020
In change_title() method, when the user types "None" for the new name, need to delete self.master.props.overlay_names[dts] rather than setting its value to None.
@csatt csatt closed this as completed Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant