Skip to content

Commit

Permalink
Merge pull request #588 from ISISNeutronMuon/maciej/old-python-fix
Browse files Browse the repository at this point in the history
Make iterable unpacking backwards compatible
  • Loading branch information
ChiCheng45 authored Oct 21, 2024
2 parents 73fd3a6 + 3a1f082 commit d5de48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MDANSE_GUI/Src/MDANSE_GUI/Tabs/Models/PlottingContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ def planes_vs_axis(self, axis_number: int) -> List[np.ndarray]:
if plane_number in self._data_limits:
fixed_argument = perpendicular_axis[plane_number]
slice_def[axis_number] = plane_number
data = self._data[*slice_def]
data = self._data[tuple(slice_def)]
self._planes[plane_number] = data
self._plane_labels[plane_number] = (
f"{perpendicular_axis_name}={fixed_argument}"
)
else:
fixed_argument = perpendicular_axis[plane_number]
slice_def[axis_number] = plane_number
data = self._data[*slice_def]
data = self._data[tuple(slice_def)]
self._planes[plane_number] = data
self._plane_labels[plane_number] = (
f"{perpendicular_axis_name}={fixed_argument}"
Expand Down
2 changes: 1 addition & 1 deletion MDANSE_GUI/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "MDANSE_GUI"
version = "0.1.0b1"
version = "0.1.0b2"
description = 'MDANSE GUI package - the graphical interface for MDANSE'
readme = "README.md"
requires-python = ">=3.9"
Expand Down

0 comments on commit d5de48a

Please sign in to comment.