Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions zetta_utils/layer/volumetric/annotation/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import attrs

from zetta_utils import builder, mazepa
from zetta_utils.geometry import Vec3D
from zetta_utils.layer.volumetric.annotation.backend import (
Annotation,
Expand Down Expand Up @@ -81,14 +80,3 @@ def with_changes(
**kwargs,
):
return attrs.evolve(self, **kwargs) # pragma: no cover


@mazepa.taskable_operation
def post_process_annotation_layer_op(target: VolumetricAnnotationLayer): # pragma: no cover
target.backend.post_process()


@builder.register("post_process_annotation_layer_flow")
@mazepa.flow_schema
def post_process_annotation_layer_flow(target: VolumetricAnnotationLayer): # pragma: no cover
yield post_process_annotation_layer_op.make_task(target)
2 changes: 2 additions & 0 deletions zetta_utils/mazepa_layer_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
build_chunked_apply_flow,
)

from . import annotation_postprocessing

builder.register("mazepa.Executor")(mazepa.Executor)
builder.register("mazepa.execute")(mazepa.execute)
builder.register("mazepa.TaskRouter")(mazepa.TaskRouter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ def post_process_annotation_layer_op(target: VolumetricAnnotationLayer): # prag
@builder.register("post_process_annotation_layer_flow")
@mazepa.flow_schema
def post_process_annotation_layer_flow(target: VolumetricAnnotationLayer): # pragma: no cover
yield post_process_annotation_layer_op.make_task(target)
# As post-processing is inherently a single-process job, there's no need
# to make or yield a task for it; we can just run it directly on the head node.
target.backend.post_process()
Loading