Skip to content

Commit c804581

Browse files
committed
Renamed 'self._milling' to 'self._milling_images' and 'MillingProgress' to 'MillingImage'
1 parent 3f56224 commit c804581

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • src/murfey/client/contexts

src/murfey/client/contexts/fib.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Lamella(NamedTuple):
2424
angle: float | None = None
2525

2626

27-
class MillingProgress(NamedTuple):
27+
class MillingImage(NamedTuple):
2828
file: Path
2929
timestamp: float
3030

@@ -84,8 +84,8 @@ def __init__(
8484
super().__init__("FIB", acquisition_software, token)
8585
self._basepath = basepath
8686
self._machine_config = machine_config
87-
self._milling: dict[int, list[MillingProgress]] = {}
8887
self._lamellae: dict[int, Lamella] = {}
88+
self._milling_images: dict[int, list[MillingImage]] = {}
8989

9090
def post_transfer(
9191
self,
@@ -139,24 +139,24 @@ def post_transfer(
139139
f"File {transferred_file.name!r} not found on storage system"
140140
)
141141
return
142-
if not self._milling.get(lamella_number):
143-
self._milling[lamella_number] = [
144-
MillingProgress(
142+
if not self._milling_images.get(lamella_number):
143+
self._milling_images[lamella_number] = [
144+
MillingImage(
145145
timestamp=timestamp,
146146
file=destination_file,
147147
)
148148
]
149149
else:
150-
self._milling[lamella_number].append(
151-
MillingProgress(
150+
self._milling_images[lamella_number].append(
151+
MillingImage(
152152
timestamp=timestamp,
153153
file=destination_file,
154154
)
155155
)
156156
gif_list = [
157157
l.file
158158
for l in sorted(
159-
self._milling[lamella_number], key=lambda x: x.timestamp
159+
self._milling_images[lamella_number], key=lambda x: x.timestamp
160160
)
161161
]
162162
raw_directory = Path(

0 commit comments

Comments
 (0)