Skip to content

Commit

Permalink
pydantic validation to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Aug 15, 2024
1 parent cc695d2 commit ebd8e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/{{package_name}}/thresholding_label_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
from fractal_tasks_core.ngff.specs import NgffImageMeta
from fractal_tasks_core.pyramids import build_pyramid
from fractal_tasks_core.utils import rescale_datasets
from pydantic.v1.decorator import validate_arguments
from pydantic import validate_call
from skimage.measure import label
from skimage.morphology import ball, dilation, opening, remove_small_objects

__OME_NGFF_VERSION__ = fractal_tasks_core.__OME_NGFF_VERSION__


@validate_arguments
@validate_call
def thresholding_label_task(
*,
zarr_url: str,
Expand Down

0 comments on commit ebd8e02

Please sign in to comment.