-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,142 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ exclude = | |
scratch_*.py, | ||
Bonsai, | ||
venv* | ||
_version.py | ||
ui_*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ app.log | |
/.idea/* | ||
/venv/ | ||
*.autosave | ||
iblrig/_version.py | ||
*.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Changelog | ||
--------- | ||
|
||
------------------------------- | ||
|
||
|
||
8.9.3 | ||
----- | ||
* re-implemented update notice | ||
|
||
8.9.2 | ||
----- | ||
* hot-fix for disabling the update-check - this will need work | ||
|
||
8.9.1 | ||
----- | ||
* hot-fix for missing live-plots | ||
|
||
8.9.0 | ||
----- | ||
* major rework of the GUI | ||
* task-specific settings | ||
* new dialogs for weight & droppings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from pathlib import Path | ||
from setuptools_scm import get_version | ||
from importlib.metadata import version | ||
# PLEASE REMEMBER TO: | ||
# 1) update CHANGELOG.md | ||
# 2) git tag the release in accordance to the version number below (after merge!) | ||
__version__ = '8.9.3' | ||
|
||
if Path('.github').exists(): | ||
__version__ = get_version(version_scheme='post-release', local_scheme='dirty-tag') | ||
else: | ||
__version__ = version('iblrig') | ||
# The following method call will try to get post-release information (i.e. the number of commits since the last tagged | ||
# release corresponding to the one above), plus information about the state of the local repository (dirty/broken) | ||
from iblrig.version_management import get_detailed_version_string | ||
__version__ = get_detailed_version_string(__version__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from pathlib import Path | ||
from shutil import which | ||
|
||
BASE_DIR = str(Path(__file__).parents[1]) | ||
IS_GIT = Path(BASE_DIR).joinpath('.git').exists() and which('git') is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'iblrig/gui/ui_update.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.15.9 | ||
# | ||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | ||
# run again. Do not edit this file unless you know what you are doing. | ||
|
||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class Ui_update(object): | ||
def setupUi(self, update): | ||
update.setObjectName("update") | ||
update.resize(353, 496) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(update.sizePolicy().hasHeightForWidth()) | ||
update.setSizePolicy(sizePolicy) | ||
icon = QtGui.QIcon() | ||
icon.addPixmap(QtGui.QPixmap(":/images/wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) | ||
update.setWindowIcon(icon) | ||
update.setModal(True) | ||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(update) | ||
self.horizontalLayout_2.setObjectName("horizontalLayout_2") | ||
self.uiLayoutLogo = QtWidgets.QVBoxLayout() | ||
self.uiLayoutLogo.setContentsMargins(-1, -1, 6, -1) | ||
self.uiLayoutLogo.setObjectName("uiLayoutLogo") | ||
self.uiLabelLogo = QtWidgets.QLabel(update) | ||
self.uiLabelLogo.setMaximumSize(QtCore.QSize(64, 64)) | ||
self.uiLabelLogo.setText("") | ||
self.uiLabelLogo.setPixmap(QtGui.QPixmap("iblrig/gui\\wizard.png")) | ||
self.uiLabelLogo.setScaledContents(True) | ||
self.uiLabelLogo.setObjectName("uiLabelLogo") | ||
self.uiLayoutLogo.addWidget(self.uiLabelLogo) | ||
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) | ||
self.uiLayoutLogo.addItem(spacerItem) | ||
self.horizontalLayout_2.addLayout(self.uiLayoutLogo) | ||
self.uiLayoutRight = QtWidgets.QVBoxLayout() | ||
self.uiLayoutRight.setObjectName("uiLayoutRight") | ||
self.uiLabelHeader = QtWidgets.QLabel(update) | ||
self.uiLabelHeader.setObjectName("uiLabelHeader") | ||
self.uiLayoutRight.addWidget(self.uiLabelHeader) | ||
self.uiTextBrowserChanges = QtWidgets.QTextBrowser(update) | ||
self.uiTextBrowserChanges.setStyleSheet("") | ||
self.uiTextBrowserChanges.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) | ||
self.uiTextBrowserChanges.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) | ||
self.uiTextBrowserChanges.setDocumentTitle("") | ||
self.uiTextBrowserChanges.setMarkdown("") | ||
self.uiTextBrowserChanges.setTextInteractionFlags(QtCore.Qt.NoTextInteraction) | ||
self.uiTextBrowserChanges.setObjectName("uiTextBrowserChanges") | ||
self.uiLayoutRight.addWidget(self.uiTextBrowserChanges) | ||
self.uiLabelFooter = QtWidgets.QLabel(update) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.uiLabelFooter.sizePolicy().hasHeightForWidth()) | ||
self.uiLabelFooter.setSizePolicy(sizePolicy) | ||
self.uiLabelFooter.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter) | ||
self.uiLabelFooter.setWordWrap(True) | ||
self.uiLabelFooter.setObjectName("uiLabelFooter") | ||
self.uiLayoutRight.addWidget(self.uiLabelFooter) | ||
spacerItem1 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) | ||
self.uiLayoutRight.addItem(spacerItem1) | ||
self.uiLayoutCommand = QtWidgets.QHBoxLayout() | ||
self.uiLayoutCommand.setObjectName("uiLayoutCommand") | ||
spacerItem2 = QtWidgets.QSpacerItem(1, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.uiLayoutCommand.addItem(spacerItem2) | ||
self.uiLineEditCommand = QtWidgets.QLineEdit(update) | ||
self.uiLineEditCommand.setAlignment(QtCore.Qt.AlignCenter) | ||
self.uiLineEditCommand.setReadOnly(True) | ||
self.uiLineEditCommand.setObjectName("uiLineEditCommand") | ||
self.uiLayoutCommand.addWidget(self.uiLineEditCommand) | ||
spacerItem3 = QtWidgets.QSpacerItem(1, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.uiLayoutCommand.addItem(spacerItem3) | ||
self.uiLayoutRight.addLayout(self.uiLayoutCommand) | ||
spacerItem4 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) | ||
self.uiLayoutRight.addItem(spacerItem4) | ||
self.uiLine = QtWidgets.QFrame(update) | ||
self.uiLine.setFrameShape(QtWidgets.QFrame.HLine) | ||
self.uiLine.setFrameShadow(QtWidgets.QFrame.Sunken) | ||
self.uiLine.setObjectName("uiLine") | ||
self.uiLayoutRight.addWidget(self.uiLine) | ||
self.uiLayoutButton = QtWidgets.QHBoxLayout() | ||
self.uiLayoutButton.setObjectName("uiLayoutButton") | ||
spacerItem5 = QtWidgets.QSpacerItem(1, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) | ||
self.uiLayoutButton.addItem(spacerItem5) | ||
self.uiPushButtonOK = QtWidgets.QPushButton(update) | ||
self.uiPushButtonOK.setObjectName("uiPushButtonOK") | ||
self.uiLayoutButton.addWidget(self.uiPushButtonOK) | ||
self.uiLayoutRight.addLayout(self.uiLayoutButton) | ||
self.horizontalLayout_2.addLayout(self.uiLayoutRight) | ||
self.horizontalLayout_2.setStretch(1, 100) | ||
|
||
self.retranslateUi(update) | ||
QtCore.QMetaObject.connectSlotsByName(update) | ||
|
||
def retranslateUi(self, update): | ||
_translate = QtCore.QCoreApplication.translate | ||
update.setWindowTitle(_translate("update", "Update Notice")) | ||
self.uiLabelHeader.setText(_translate("update", "Update Available!")) | ||
self.uiLabelFooter.setText(_translate("update", "To update, close IBL Rig Wizard and run the following command within the iblrigv8 Python environment:")) | ||
self.uiLineEditCommand.setText(_translate("update", "iblrig_update")) | ||
self.uiPushButtonOK.setText(_translate("update", "OK")) |
Oops, something went wrong.