-
Notifications
You must be signed in to change notification settings - Fork 5
fixes show method crash for FEVectorBlock + additional show functions #45
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
* fixes related to new TVector type for entries introduced in 1.2 * version bump and changelog (together with PR #45)
…rator, added calls of show functions to the tests
test/test_febasis.jl
Outdated
|
||
function test_vertex_values(EG, FEType, order) | ||
qf = VertexRule(EG, order; T = Rational{Int}) | ||
@show qf |
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.
I generally like the idea, but, nevertheless, the logs are pretty verbose now: https://github.com/WIAS-PDELib/ExtendableFEMBase.jl/actions/runs/16163910516/job/45621150705?pr=45#step:6:928
It may be better to test the show
function directly with show(devnull, qf)
which redirects the output into the void. Errors should be thrown as before, if something is not implemented correctly.
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.
One could also add a global variable target_stream = devnull
in the runtests.jl
. The user can set this to stdout
if inspecting the output is needed. Opinions?
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.
and then use show(target_stream, obj) everywhere?
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.
Yes, or just show(devnull, obj)
... I am not sure whether a switch is any good or just creates confusion.
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.
After thinking for a few more seconds: no target_stream
. If I want to inspect the output in the logs, I just remove the devnull
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.
Ok, then I will use show(devnull, obj)
@show of FEVectorBlock was not working