-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add VTK Visualization Toolkit Plugin #20028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VIS is great! I have a few questions about the datatype.
Thanks Sam!
subtype = "" | ||
|
||
# Add metadata elements (sorted alphabetically by name). | ||
MetadataElement(name="file_format", default=None, desc="File format", readonly=True, optional=True, visible=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are those file_formats? Should we have subclasses of this for each of the file_format? E.g. can there be tools or Vis that require one of the specific sub-types?
Is unusual to encode file_formats this way I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file_format
here refers to type
in the VTP-file, commonly its PolyData
. I used file_format
because it is used in VTK
and PLY
but I switched it to type
so it aligns with actual attribute name in the VTP-file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works nicely. The test data really helps to test, thanks @guerler!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @guerler works great! The test data in the PR description are helping a lot :)
Test failure is relevant: https://github.com/galaxyproject/galaxy/actions/runs/14542428601/job/40802807530#step:15:3038 |
Add VTK as Visualization plugin, supporting ply and vtp files. This PR also add the vtpascii and vtpbinary datatypes to the registry.
Test data available at:
http://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/square.plyascii
http://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/horse.plybinary
http://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/square.vtpascii
http://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/human.vtpbinary
How to test the changes?
(Select all options that apply)
License