Skip to content

Commit

Permalink
Remove validators from processors
Browse files Browse the repository at this point in the history
They're unnecessary.
  • Loading branch information
jmsmkn committed Jun 28, 2023
1 parent a5a9f5e commit 5a7b838
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,9 @@ from pandas import DataFrame
from scipy.ndimage import center_of_mass, label
{% endif %}
from evalutils import {{ cookiecutter.task_kind }}Algorithm
from evalutils.validators import (
UniquePathIndicesValidator,
UniqueImagesValidator,
)


class {{ cookiecutter.package_name|capitalize }}({{ cookiecutter.task_kind }}Algorithm):
def __init__(self):
super().__init__(
validators=dict(
input_image=(
UniqueImagesValidator(),
UniquePathIndicesValidator(),
)
),
)
{% if cookiecutter.task_kind == "Detection" %}
def predict(self, *, input_image: SimpleITK.Image) -> DataFrame:
# Extract a numpy array with image data from the SimpleITK Image
Expand Down

0 comments on commit 5a7b838

Please sign in to comment.