|
4 | 4 | This package provides a modular graphical user interface for configuring |
5 | 5 | and visualizing AeoLiS aeolian sediment transport model results. |
6 | 6 |
|
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. |
12 | 8 | """ |
13 | 9 |
|
| 10 | +# Import from the gui_app_backup module within the gui package |
| 11 | +from aeolis.gui.gui_app_backup import AeolisGUI, configfile, dic |
14 | 12 | from aeolis.gui.main import launch_gui |
15 | 13 |
|
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 | | - |
34 | 14 | __all__ = ['launch_gui', 'AeolisGUI', 'configfile', 'dic'] |
0 commit comments