Skip to content

Commit c5a5c40

Browse files
authored
Merge pull request #509 from ISISNeutronMuon/maciej/last-fixes-before-release
Correct path saving mechanism for actions
2 parents 7059d91 + e3299a9 commit c5a5c40

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

MDANSE_GUI/Src/MDANSE_GUI/InputWidgets/InputFileWidget.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ def valueFromDialog(self):
105105
if new_value[0]:
106106
self._field.setText(new_value[0])
107107
self.updateValue()
108-
try:
109-
print(
110-
f"Settings path of {self._job_name} to {os.path.split(new_value[0])[0]}"
111-
)
112-
paths_group.set(self._job_name, os.path.split(new_value[0])[0])
113-
except:
114-
LOG.error(
115-
f"session.set_path failed for {self._job_name}, {os.path.split(new_value[0])[0]}"
116-
)
108+
try:
109+
LOG.info(
110+
f"Settings path of {self._job_name} to {os.path.split(new_value[0])[0]}"
111+
)
112+
paths_group.set(self._job_name, os.path.split(new_value[0])[0])
113+
except:
114+
LOG.error(
115+
f"session.set_path failed for {self._job_name}, {os.path.split(new_value[0])[0]}"
116+
)
117117

118118
def get_widget_value(self):
119119
"""Collect the results from the input widgets and return the value."""

MDANSE_GUI/Src/MDANSE_GUI/Tabs/Visualisers/PlotSettings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def make_layout(self, width=12.0, height=9.0, dpi=100):
184184
try:
185185
current_cmap = colour_group.get("colormap")
186186
except KeyError:
187-
print(f"Could not get colormap from colours")
187+
LOG.warning(f"Could not get colormap from colours")
188188
colour_group.add(
189189
"colormap",
190190
"viridis",
@@ -195,7 +195,7 @@ def make_layout(self, width=12.0, height=9.0, dpi=100):
195195
if current_cmap not in mpl.colormaps():
196196
current_cmap = "viridis"
197197
except:
198-
print(f"Could not get the colours group")
198+
LOG.warning(f"Could not get the colours group")
199199
current_cmap = "viridis"
200200
cmap_selector = QComboBox(self)
201201
cmap_selector.addItems(mpl.colormaps())

MDANSE_GUI/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies = [
3535
"matplotlib",
3636
"qtpy",
3737
"vtk",
38-
"PyQt6",
38+
"PyQt6<=6.7.0",
3939
"PyYAML",
4040
"tomlkit"
4141
]

0 commit comments

Comments
 (0)