mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-12-21 16:00:25 +00:00
Linting.
This commit is contained in:
parent
c14c047118
commit
979f92235c
2 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,7 @@ class BaseSpectrometerController(ModuleController):
|
|||
|
||||
def load_settings(self, path: str) -> None:
|
||||
"""Loads the settings of the spectrometer."""
|
||||
with open(path, "r") as f:
|
||||
with open(path) as f:
|
||||
json = f.read()
|
||||
|
||||
# string to dict
|
||||
|
|
|
@ -150,7 +150,9 @@ class BaseSpectrometerView(ModuleView):
|
|||
dialog.exec()
|
||||
|
||||
class DefaultSettingsDialog(QDialog):
|
||||
"""Dialog to set or clear the default settings of the spectrometer."""
|
||||
def __init__(self, parent=None):
|
||||
"""Initializes the default settings dialog."""
|
||||
super().__init__(parent)
|
||||
self.parent = parent
|
||||
self.setWindowTitle("Default Settings")
|
||||
|
|
Loading…
Reference in a new issue