Skip to content

Commit 6db053a

Browse files
committed
fix: handle cycles for CP images
1 parent 09a2e89 commit 6db053a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starrynight/src/starrynight/algorithms/illum_calc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def write_loaddata(
7777
index.plate_id,
7878
index.site_id,
7979
index.well_id,
80-
f"{int(index.cycle_id):02}",
80+
f"{int(index.cycle_id):02}" if index.cycle_id is not None else 0,
8181
# Filename heads
8282
*[f"{index.filename}" for _ in range(len(filename_heads))],
8383
# Frame heads

0 commit comments

Comments
 (0)