Skip to content

Commit 3bad8e0

Browse files
Use expected type for dials code
1 parent 7fcfdb8 commit 3bad8e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/xia2/Wrappers/Dials/Functional/StereographicProjection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, working_directory: Path | None = None):
3030

3131
# Don't set these on the params as not necessary - unless wanted in diff phil.
3232
self._json_filename: Path | None = None
33-
self._labels: list[int] | None = None
33+
self._labels: list[str] | None = None
3434
self._logfile: Path | None = None
3535

3636
@property
@@ -50,12 +50,12 @@ def hkl(self, hkl: tuple[int, int, int]) -> None:
5050
)
5151

5252
@property
53-
def labels(self) -> list[int] | None:
53+
def labels(self) -> list[str] | None:
5454
return self._labels
5555

5656
@labels.setter
5757
def labels(self, labels: list[int]) -> None:
58-
self._labels = labels
58+
self._labels = [str(i) for i in labels]
5959

6060
@property
6161
def json_filename(self) -> Path | None:

0 commit comments

Comments
 (0)