Version bump.

This commit is contained in:
jupfi 2024-05-20 07:41:28 +02:00
parent bb63bf3975
commit 9187ffb9ec
3 changed files with 18 additions and 8 deletions

View file

@ -1,12 +1,21 @@
# Changelog # Changelog
### Version 0.0.10 (05-05-2024) ## Version 0.0.11 (20-05-2024)
- Measurements are now run in a separate worker thread to prevent the GUI from freezing (`27865aa6d44158e74c0e537be8407c12b4e3725b`)
## Version 0.0.10 (05-05-2024)
- Added a name property to the measurement class (`a4ef8fa9d956acf84a9450b27685913e03bd39af`) - Added a name property to the measurement class (`a4ef8fa9d956acf84a9450b27685913e03bd39af`)
### Version 0.0.9 (26-04-2024)
## Version 0.0.9 (26-04-2024)
- Switched to new formbuilder, moved Function to core - Switched to new formbuilder, moved Function to core
### Version 0.0.8 (18-04-2024) ## Version 0.0.8 (18-04-2024)
- Automatic deployment to PyPI - Automatic deployment to PyPI
### Version 0.0.7 (15-04-2024) ## Version 0.0.7 (15-04-2024)
- Initial release
- Initial release

View file

@ -7,7 +7,7 @@ allow-direct-references = true
[project] [project]
name = "nqrduck-spectrometer" name = "nqrduck-spectrometer"
version = "0.0.10" version = "0.0.11"
authors = [ authors = [
{ name="jupfi", email="support@nqruck.cool" }, { name="jupfi", email="support@nqruck.cool" },
] ]

View file

@ -36,7 +36,7 @@ class SpectrometerController(ModuleController):
continue continue
# Import the module # Import the module
logger.debug("Loading spectromter module: %s", module_name) logger.debug("Loading spectrometer module: %s", module_name)
module.model.widget_changed.connect( module.model.widget_changed.connect(
self._module.view.on_spectrometer_widget_changed self._module.view.on_spectrometer_widget_changed
) )
@ -100,8 +100,10 @@ class SpectrometerController(ModuleController):
self.measurement_thread.finished.connect(self.measurement_thread.deleteLater) self.measurement_thread.finished.connect(self.measurement_thread.deleteLater)
self.measurement_thread.start() self.measurement_thread.start()
class MeasurementWorker(QObject): class MeasurementWorker(QObject):
"""Worker class to run the measurement in a separate thread.""" """Worker class to run the measurement in a separate thread."""
finished = pyqtSignal() finished = pyqtSignal()
def __init__(self, controller): def __init__(self, controller):
@ -113,4 +115,3 @@ class MeasurementWorker(QObject):
"""Run the measurement.""" """Run the measurement."""
self.controller.on_measurement_start() self.controller.on_measurement_start()
self.finished.emit() self.finished.emit()