InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

GenericLabelInterpolator: Python warnings on load

Open
#6,291 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

The `GenericLabelInterpolator` module was ingested into ITK from the (now archived) `ITKGenericLabelInterpolator` remote module. This issue tracks, in ITK proper, the work originally filed as **InsightSoftwareConsortium/ITKGenericLabelInterpolator#35** by @tbirdso (2023-03-07).

---

Warnings for unknown parameters / template already defined when the `itk-genericlabelinterpolator` module first loads.

```py
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import itk
>>> itk.LabelImageGenericInterpolateImageFunction[itk.Image[itk.US,3]].New()
Warning: Unknown parameter 'itk::LinearInterpolateImageFunction' in template 'itk::LabelImageGenericInterpolateImageFunction'
Warning: Unknown parameter 'itk::NearestNeighborInterpolateImageFunction' in template 'itk::LabelImageGenericInterpolateImageFunction'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,2>,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,2>,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,3>,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,3>,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,4>,itk::NearestNeighborInterpolateImageFunction>'
Warning: template already defined 'itk::LabelImageGenericInterpolateImageFunction,4>,itk::NearestNeighborInterpolateImageFunction>'
>
```

---

Original report: https://github.com/InsightSoftwareConsortium/ITKGenericLabelInterpolator/issues/35 (archived repository). Credit: @tbirdso.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.