diff --git a/src/arpes/plotting/qt_ktool/__init__.py b/src/arpes/plotting/qt_ktool/__init__.py index aa7aa55a..6b964ba2 100644 --- a/src/arpes/plotting/qt_ktool/__init__.py +++ b/src/arpes/plotting/qt_ktool/__init__.py @@ -22,7 +22,7 @@ from matplotlib.colors import Colormap from PySide6.QtWidgets import QGridLayout - from arpes._typing import ANGLE, XrTypes + from arpes._typing import ANGLE __all__ = ( "KTool", @@ -120,8 +120,9 @@ def updater(value: str | float) -> None: for dim in convert_dims: ui[f"control-{dim}"].subject.subscribe(update_dimension_name(dim)) - - controls.setFixedHeight(qt_info.inches_to_px(1.75)) + qt_info_size = qt_info.inches_to_px(1.75) + assert isinstance(qt_info_size, int) + controls.setFixedHeight(qt_info_size) self.main_layout.addLayout(self.content_layout, 0, 0) self.main_layout.addWidget(controls, 1, 0) diff --git a/src/arpes/xarray_extensions.py b/src/arpes/xarray_extensions.py index 7b831027..131041b2 100644 --- a/src/arpes/xarray_extensions.py +++ b/src/arpes/xarray_extensions.py @@ -1731,7 +1731,8 @@ def _experimentalinfo_to_dict(conditions: EXPERIMENTINFO) -> dict[str, str]: min_hv = float(v.min()) max_hv = float(v.max()) transformed_dict[k] = ( - f" from {min_hv} to {max_hv} eV" + f" from {min_hv} " + f" to {max_hv} eV" ) elif isinstance(v, float) and not np.isnan(v): transformed_dict[k] = f"{v} eV"