Update/add show functions VTK objects#61
Merged
ranocha merged 6 commits intoJuliaVTK:mainfrom Aug 26, 2024
Merged
Conversation
Updated show functions for the following objects: VTKFile, VTKDataArray, PVTKFile, PVDFile, VTKData, PVTKData, and PVTKDataArray.
ranocha
requested changes
Aug 19, 2024
Member
ranocha
left a comment
There was a problem hiding this comment.
Thanks! I don't know why our CI tests fail...
Member
|
I fixed the CI issues in #61 |
Merged
Member
|
Could you please run the formatter? import Pkg; Pkg.activate(temp = true); Pkg.add(name = "JuliaFormatter", version = v"1.0.45"); using JuliaFormatter; format(".") |
Contributor
Author
|
@ranocha I've added the test you requested and ran the formatter, let me know if you think it needs anything else! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following pull request updates and adds
showmethods for various VTK objects, following this issue: #60Updated and added methods are given for the following objects:
VTKFile,VTKDataArray,PVTKFile,PVDFile,VTKData,PVTKData, andPVTKDataArray.Where possible, I have tried to copy the style of the original
showmethod defined forVTKFileobjects.The following subsections show a comparison of the original
showoutput verses the proposed newshowoutput (generated from files in the test suite).VTKFileobjectsOriginal output
Proposed new output
Notes
The proposed changes are only slightly different than the current implementation. The only difference is using the
reprrepresentation for thevtk_file.version::VersionNumber.VTKDataArrayobjectsOriginal output
Proposed new output
Notes
The new
showmethod lists the parametric types associated with the object, listing the data type encoding, the size of the second dimension, and the encodingformat. It also lists the other data fields, with a shortened expression for thevtk_filefield (shortened similarly to the method defined forVTKFile`).PVTKFileobjectsOriginal output
Proposed new output
Notes
Similar format to
VTKFile, but including a list representation for the fieldvtk_filenames::Vector{String}.PVDFileobjects:Original output
Proposed new output
Notes
Similar format to
VTKFile, but many of the fields now have shortened expressions.VTKDataobjects:Original output
Proposed new output
Notes
Here the new method shows the array for
names::Vector{String}, and only short expressions for the other fields.PVTKDataobjects:Original output
Proposed new output
Notes
Similar to
VTKData, but here the fielddata::Vector{VTKData}uses thesummarymethod for the shown string.PVTKDataArrayobjects:Original output
Proposed new output
Notes
Similar to
PVTKData, where the fielddata::Vector{VTKDataArray}uses thesummarymethod for the shown string.Reasoning and justification for changes
Informative
showmethods help new users understand the functionality of the package, and help debugging.Comments
Where possible, I have tried to copy the style and code formatting of the original
showmethod defined forVTKFileobjects. This is my first attempt at changes, and I'm happy to take on feedback, thank you!