Recently I have been using python to generate helpful post-processing graphics. Therefore I used the modul matplotlib. Yet the scripts can't be run directly from adams, always needed to compile these py-scripts into an .exe. Does anybody know how to tell adams to use the installed matplotlib library, or will it be a standard package in a next version?
I'm using Kents first advice to import the module xlrd (xcel file read/write) and it just works fine.
In my case I have put it beneath a plugin-directory and on plugin load I just call
sys.path.append('<my_plugin_path>/xlrd_1_0_0')
Don't forget to cleanup after work, i.e. to issue a
sys.path.remove()
when you're done (in my case on plugin unload).
Concerning adding "everything" to the MSC Python installation:
Yes, on one hand it's convenient for us users, but on the other MSC has to kind of guarantee that everything works (i.e. do regression testing).
If they start adding everything available in the Python world they soon would be occupied with just testing the Python part of ADAMS.
Maybe they should query a set of experienced users or the Forum for commonly used stuff and just add the most used modules like they did with scipy/numpy in the past.
I'm using Kents first advice to import the module xlrd (xcel file read/write) and it just works fine.
In my case I have put it beneath a plugin-directory and on plugin load I just call
sys.path.append('<my_plugin_path>/xlrd_1_0_0')
Don't forget to cleanup after work, i.e. to issue a
sys.path.remove()
when you're done (in my case on plugin unload).
Concerning adding "everything" to the MSC Python installation:
Yes, on one hand it's convenient for us users, but on the other MSC has to kind of guarantee that everything works (i.e. do regression testing).
If they start adding everything available in the Python world they soon would be occupied with just testing the Python part of ADAMS.
Maybe they should query a set of experienced users or the Forum for commonly used stuff and just add the most used modules like they did with scipy/numpy in the past.