Skip to content

Commit

Permalink
Merge pull request #47 from ericpre/fix_import_tools
Browse files Browse the repository at this point in the history
Fix import tools error when running hyperspy test suite
  • Loading branch information
ericpre authored May 3, 2022
2 parents 7996171 + 0c5a4b2 commit c542dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
Add a single entry in the corresponding section below.
See https://keepachangelog.com for details

## v1.6.0.dev0 (UNRELEASED)
## v1.5.1.dev0 (UNRELEASED)

* Fix import tools error when running hyperspy test suite ([#47](https://github.com/hyperspy/hyperspy_gui_traitsui/pull/47))

## v1.5.0 (2022-04-26)

Expand Down
3 changes: 1 addition & 2 deletions hyperspy_gui_traitsui/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import traitsui
import traitsui.api as tu
from traitsui.file_dialog import FileEditor
from traitsui.menu import OKButton, CancelButton, OKCancelButtons

from hyperspy_gui_traitsui.axes import get_navigation_sliders_group
Expand Down Expand Up @@ -312,7 +311,7 @@ def smooth_butterworth(obj, **kwargs):
@add_display_arg
def load(obj, **kwargs):
view = tu.View(
tu.Group(tu.Item('filename', editor=FileEditor(dialog_style='open')),
tu.Group(tu.Item('filename', editor=tu.FileEditor(dialog_style='open')),
"lazy"),
kind='livemodal',
buttons=[OKButton, CancelButton],
Expand Down

0 comments on commit c542dcf

Please sign in to comment.