Skip to content
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

Recovering a complex julia structure #230

Open
jfmoyen opened this issue Jun 22, 2024 · 0 comments
Open

Recovering a complex julia structure #230

jfmoyen opened this issue Jun 22, 2024 · 0 comments

Comments

@jfmoyen
Copy link

jfmoyen commented Jun 22, 2024

Good day,

Thanks and congrats for the nice work! I have a (possibly very simple) problem: I'm using a julia package, MAGEMin_c (https://github.com/ComputationalThermodynamics/MAGEMin_C.jl ) that outputs a rather complex structure described here: https://computationalthermodynamics.github.io/MAGEMin/ckbk/out_struct.html#as-a-nested-structure

From R, the only way I managhed to recover it is piecewise, by calling individually e.g. julia_eval("out1.ph"), julia_eval("out1.SS_vec[2].Comp_wt"), etc.

This is rather clumsy, and it seems to me that the julia object should be equivalent to a R list ? Still, trying to do julia_eval("out1") only gives me
Julia Object of type MAGEMin_C.gmin_struct{Float64, Int64}. (etc)

Am I missing an easier way ?

Thanks !

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

No branches or pull requests

1 participant