REF: Split classes in `cmp.bidsappmanager.gui.py` in different files
sebastientourbier opened this issue · 2 comments
sebastientourbier commented
@jwirsich This issue follows up with your great idea at last Brainhack to split the classes defined in cmp.bidsappmanager.gui.py
in different files. Here comes some first ideas.
I would see the restructuration as the following:
cmp/
|____ bidsappmanager/
|____ gui/
|____ __init__.py
|____ bidsapp.py <- CMP_BIDSAppWindow class
|____ config.py <- CMP_ConfiguratorWindow class
|____ qc.py <- class
|____ main.py <- CMP_MainWindow class that imports CMP_BIDSAppWindow,
CMP_ConfiguratorWindow, and CMP_InspectorWindow classes
This would also require:
- to add
cmp.bidsappmanager.gui
to thepackages
list insetup.py
- to propagate
CMP_MainWindow
to thecmp.bidsappmanager.gui
module (by adding the linefrom .main import CMP_MainWindow
tocmp/bidsappmanager/gui/__init__.py
) such as thefrom cmp.bidsappmanager.gui import CMP_MainWindow
stays valid incmp/cli/cmpbidsappmanager.py
script.
What do you think?
jwirsich commented
Looks good, probably to decide if to refactor before or after merging in a EEG-Configuration tab.
sebastientourbier commented