-
Notifications
You must be signed in to change notification settings - Fork 2
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
show methods #8
show methods #8
Conversation
@IvanYashchuk let's focus the MFront Julia development in this package. I'm using this package to connect MFront to JuliaFEM. If you already experienced it would be really cool to get you onboard developing this further. Please feel free to open issues/pull request to get the development forward. |
@TeroFrondelius Sorry for the delay. Does
If a detailled description is more suitable, one shall discuss this because a detailled description can be quite long.. Thomas |
I think the possibilities are endless. Here are some examples: https://docs.julialang.org/en/v1/base/io-network/#Base.IOContext. I don't have earlier experience, but my idea is to make user interactive usage as easy and intuitive as possible. |
@thelfer what method I should use to dick into the |
@TeroFrondelius BehaviourData is nothing really interesting per se.
The name of the behaviour can be retrieved for the behaviour object |
I would eventually like to build a way to dig the data interactively in the REPL session. As an example, instead of writing: julia> get_internal_state_variables(get_initial_state(d))
7-element RealsVector
0.0
0.0
0.0
0.0
0.0
0.0
0.0 Maybe we should have something like this: julia> d.internal_state_variables[0]
7-element RealsVector, time = 0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0 Thus in my mind printing the BehaviourData structure would help users/developers to more easily understand the data model and its usage. |
It seems that this kind of functionality is not yet implemented in CxxWrap.jl |
I merged these changes. If I will do more show methods I will open a new pull request. |
Here is the updated usage example:
@thelfer here is an example of overloading
Base.show
function to get nicer interactive user experience. You know the internals better, is there something we should add or remove? I would like to useget_parameters
, but I couldn't figured out how to use it. Can you help me creating another method for another type?