Skip to content

Commit 7cc336c

Browse files
committed
updated structure for further refactoring
1 parent 532219e commit 7cc336c

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

aeolis/gui/__init__.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,11 @@
44
This package provides a modular graphical user interface for configuring
55
and visualizing AeoLiS aeolian sediment transport model results.
66
7-
Modules:
8-
- main: Main GUI application entry point
9-
- config_manager: Configuration file I/O
10-
- utils: Utility functions for file handling, time conversion, etc.
11-
- visualizers: Visualization modules for different data types
7+
The main entry point is launch_gui() which creates and runs the GUI application.
128
"""
139

10+
# Import from the gui_app_backup module within the gui package
11+
from aeolis.gui.gui_app_backup import AeolisGUI, configfile, dic
1412
from aeolis.gui.main import launch_gui
1513

16-
# Import from the parent-level gui.py module to avoid naming conflicts
17-
import sys
18-
import os
19-
parent_dir = os.path.dirname(os.path.dirname(__file__))
20-
if parent_dir not in sys.path:
21-
sys.path.insert(0, parent_dir)
22-
23-
# Import the legacy AeolisGUI class and related variables from gui.py at aeolis level
24-
import importlib.util
25-
gui_py_path = os.path.join(parent_dir, 'gui.py')
26-
spec = importlib.util.spec_from_file_location("aeolis_gui_module", gui_py_path)
27-
gui_module = importlib.util.module_from_spec(spec)
28-
spec.loader.exec_module(gui_module)
29-
30-
AeolisGUI = gui_module.AeolisGUI
31-
configfile = gui_module.configfile
32-
dic = gui_module.dic
33-
3414
__all__ = ['launch_gui', 'AeolisGUI', 'configfile', 'dic']

0 commit comments

Comments
 (0)