How to get the list of functions in a library .so #167
Answered
by
thelfer
leopeuziat
asked this question in
Q&A
-
I would like to use the MTest Python API to plot a material property as a function of its parameters. In a library .so there can be several functions. For exemple, in the VanadiumAlloy material given as an exemple in the MFront Gallery, there are PoissonRatio, ShearModulus, SpecificHeat... Is it possible to get the list of functions in a library .so ? |
Beta Was this translation helpful? Give feedback.
Answered by
thelfer
Apr 19, 2022
Replies: 1 comment
-
@leopeuziat You can use the following from tfel.system import ExternalLibraryManager
elm = ExternalLibraryManager.getExternalLibraryManager()
print(elm.getEntryPoints('vanadiumalloy.so')) This works with any library generated by MFront. The output is:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
leopeuziat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@leopeuziat You can use the following
python
script:This works with any library generated by MFront.
The output is: