mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-12-22 23:57:51 +00:00
Linting.
This commit is contained in:
parent
be2e895c57
commit
0cd3f915f8
2 changed files with 11 additions and 3 deletions
|
@ -233,8 +233,13 @@ class MeasurementController(ModuleController):
|
|||
|
||||
@pyqtSlot()
|
||||
def change_displayed_measurement(self, measurement=None) -> None:
|
||||
"""Change the displayed measurement."""
|
||||
"""Change the displayed measurement.
|
||||
|
||||
If no measurement is provided, the displayed measurement is changed to the selected measurement in the selection box.
|
||||
|
||||
Args:
|
||||
measurement (Measurement, optional): The measurement to display. Defaults to None.
|
||||
"""
|
||||
if not self.module.model.measurements:
|
||||
logger.debug("No measurements to display.")
|
||||
return
|
||||
|
@ -271,7 +276,9 @@ class MeasurementController(ModuleController):
|
|||
else:
|
||||
self.module.model.displayed_measurement = None
|
||||
|
||||
def edit_measurement(self, old_measurement : Measurement, new_measurement : Measurement) -> None:
|
||||
def edit_measurement(
|
||||
self, old_measurement: Measurement, new_measurement: Measurement
|
||||
) -> None:
|
||||
"""Edit a measurement.
|
||||
|
||||
Args:
|
||||
|
|
|
@ -415,6 +415,7 @@ class MeasurementView(ModuleView):
|
|||
"""
|
||||
|
||||
def __init__(self, measurement, parent = None) -> None:
|
||||
"""Initialize the dialog."""
|
||||
super().__init__(parent)
|
||||
self.setParent(parent)
|
||||
|
||||
|
|
Loading…
Reference in a new issue