Skip to content

Commit 2d63e84

Browse files
committed
Pass new_plate_name from projection init task to projection image list updates
1 parent c8b050a commit 2d63e84

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

fractal_tasks_core/tasks/copy_ome_zarr_hcs_plate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,10 @@ def copy_ome_zarr_hcs_plate(
244244
parallelization_item = dict(
245245
zarr_url=new_zarr_url,
246246
init_args=dict(
247-
origin_url=zarr_url, method=method.value, overwrite=overwrite
247+
origin_url=zarr_url,
248+
method=method.value,
249+
overwrite=overwrite,
250+
new_plate_name=new_plate_name,
248251
),
249252
)
250253
InitArgsMIP(**parallelization_item["init_args"])

fractal_tasks_core/tasks/io_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ class InitArgsMIP(BaseModel):
8686
origin_url: Path to the zarr_url with the 3D data
8787
method: Projection method to be used. See `DaskProjectionMethod`
8888
overwrite: If `True`, overwrite the task output.
89+
new_plate_name: Name of the new OME-Zarr HCS plate
8990
"""
9091

9192
origin_url: str
9293
method: str
9394
overwrite: bool
95+
new_plate_name: str
9496

9597

9698
class MultiplexingAcquisition(BaseModel):

fractal_tasks_core/tasks/projection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def projection(
130130
dict(
131131
zarr_url=zarr_url,
132132
origin=init_args.origin_url,
133+
attributes=dict(plate=init_args.new_plate_name),
133134
types=dict(is_3D=False),
134135
)
135136
]

0 commit comments

Comments
 (0)