Skip to content

ENH: Cleanup python wrapping tests#643

Merged
fbudin69500 merged 2 commits intoInsightSoftwareConsortium:masterfrom
maekclena:cleanup_python_test
Mar 30, 2019
Merged

ENH: Cleanup python wrapping tests#643
fbudin69500 merged 2 commits intoInsightSoftwareConsortium:masterfrom
maekclena:cleanup_python_test

Conversation

@maekclena
Copy link
Copy Markdown
Contributor

  • Remove last remaining modules tests
  • Remove outdated "notYetUsable" tests
  • Remove Numpy condition, tests work fine without it
  • Update exclude-filters.txt
  • Rewrite and enable findEmptyClasses.py
  • Exclude ScanlineFilterCommon from getNameOfClass.py to fix Re-enable the PythonGetNameOfClass test #96.

I initially wanted to rewrite ScanlineFilterCommon to have it inherit ImageToImageFilter but this introduces a diamond inheritance with InPlaceImageFilter, which I imagine is why is used composition in the first place. Honestly, I don't know why it needs to be wrapped.

Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't know why [ScanlineFilterCommon] needs to be wrapped.

Python wrapping complains if it is not wrapped? 😄

Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!

Copy link
Copy Markdown
Contributor

@fbudin69500 fbudin69500 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning up!

Comment thread Wrapping/Generators/Python/Tests/getNameOfClass.py
Comment thread Wrapping/Generators/Python/Tests/CMakeLists.txt
@fbudin69500
Copy link
Copy Markdown
Contributor

Awesome! Thanks! 👍

@fbudin69500 fbudin69500 merged commit eed9fc7 into InsightSoftwareConsortium:master Mar 30, 2019
@maekclena maekclena deleted the cleanup_python_test branch April 15, 2019 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable the PythonGetNameOfClass test

4 participants