-
Notifications
You must be signed in to change notification settings - Fork 8
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
NiBAx update of visualization components #235
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gurayerus Thanks for this PR. I propose to split it into multiple PRs. Specifically, the relocation of dataio
and each individual plugin should be in a separate PR.
Some additional comments:
- changes in
.gitignore
should be in a separate PR - please use
git mv
to move files (e.g. the dictionaries) to avoid them appearing as new - avoid desabling plugins, instead implement
dataio
incore
and make changes in existing plugins, then add your plugins through a new PR
.gitignore
Outdated
**/__pycache__/ No newline at end of file | ||
.* | ||
__pycache__ | ||
!.gitignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a separate PR.
#def GetData(self,roi,hue): | ||
#"""Returns a subset of data needed for plot. | ||
#Takes as parameters the roi and hue for the plot. | ||
#Since the plot always uses 'Age' for X axis, this is always returned.""" | ||
#if not isinstance(roi, list): | ||
#roi = [roi] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to comment out; either remove or keep
#d = self.data[roi + ["Age",hue]] | ||
#return d | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to comment out; either remove or keep
@@ -32,7 +32,7 @@ def __init__(self, parent=None, width=5, height=4, dpi=100): | |||
|
|||
self.setLayout(QtWidgets.QVBoxLayout()) | |||
|
|||
self.layout().addWidget(self.toolbar) | |||
#self.layout().addWidget(self.toolbar) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to comment out; either remove or keep
self.ui.tabWidget.insertTab(value.getTabPosition(),value,key) | ||
break | ||
|
||
self.ui.tabWidget.setCurrentIndex(0) # always display first tab | ||
|
||
if dataFile is not None: | ||
# if datafile provided on cmd line, load it | ||
self.Plugins['Load and Save Data'].ReadData(dataFile) | ||
#self.Plugins['Table View'].ReadData(dataFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is obsolete
## Include Mac menu bar | ||
#self.ui.menuFile.setMenuRole(QAction.NoRole) | ||
#self.ui.actionOpen.setMenuRole(QAction.NoRole) | ||
#self.ui.actionSave.setMenuRole(QAction.NoRole) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary for proper functioning on macOS. This should not be commented out.
#def _createMenuBar(self): | ||
#menuBar = self.menuBar() | ||
## Creating menus using a QMenu object | ||
#fileMenu = QMenu("&File", self) | ||
#menuBar.addMenu(fileMenu) | ||
## Creating menus using a title | ||
#editMenu = menuBar.addMenu("&Edit") | ||
#helpMenu = menuBar.addMenu("&Help") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to comment out; either remove or keep
Changes required for moving dataio to core
Only in NiBAx/NiBAx/core: dataio.py ## This file is just moved
Only in NiBAx/NiBAx/core: MUSE_DerivedROIs_Mappings.csv ## For now I moved MUSE dict files to core from loadsave
Only in NiBAx/NiBAx/core: MUSE_ROI_Dictionary.csv ## this is temporary and will change
Misc additions
Only in NiBAx/NiBAx/core/gui: CheckableQComboBox.py ## Required as a new visual element
Simple change to disable plugin for now
Only in NiBAxInit/NiBAx/plugins/agetrends: agetrends.yapsy-plugin
Only in NiBAx/NiBAx/plugins/agetrends: agetrends.yapsy-plugin.disabled
Simple change to disable plugin for now
Only in NiBAxInit/NiBAx/plugins/loadsave: loadsave.yapsy-plugin
Only in NiBAx/NiBAx/plugins/loadsave: loadsave.yapsy-plugin.disabled
Additional plugins (independent components)
Only in NiBAx/NiBAx/plugins: distview
Only in NiBAx/NiBAx/plugins: plotview
Only in NiBAx/NiBAx/plugins: tableview
Changes in scripts
Single line change
Files NiBAx/NiBAx/core/plotcanvas.py and NiBAxInit/NiBAx/core/plotcanvas.py differ
Single line change
Files NiBAx/NiBAx/NiBAxCmdApp.py and NiBAxInit/NiBAx/NiBAxCmdApp.py differ
Simple graphic changes (add menu)
Files NiBAx/NiBAx/mainwindow.ui and NiBAxInit/NiBAx/mainwindow.ui differ
Additional functions to differentiate initial data
and data after filtering
This part will require more changes to handle multiple
datasets in a simple way
Files NiBAx/NiBAx/core/model/datamodel.py and NiBAxInit/NiBAx/core/model/datamodel.py differ
File read moved here from loadsave plugin previously
Files NiBAx/NiBAx/mainwindow.py and NiBAxInit/NiBAx/mainwindow.py differ