On Thu, Oct 10, 2013 at 23:45 -0400, Joey Neilsen wrote: > Hi all, > > First attempt to build local models, using CentOS 6.4, ISIS 1.6.2-27, > HEASOFT 6.14. > > I followed Mike's instructions here: > > http://www.black-hole.eu/index.php/schools-workshops-and-conferences/1st-school-on-multiwavelength-astronomy/course-materials/105-heasoft-and-isis-installation-guide-building-xspec-local-models > > and installed some local models in my /usr/local/xspec_lmodels directory. > > When I run xspec and type "lmod xspec_lmodels > /usr/local/xspec_lmodels/i686" the local models work fine. > > But when I "setenv LMODDIR /usr/local/xspec_lmodels/i686" and try to access > them in ISIS, I have no luck, e.g. > > isis> model("dustscat"); > dustscat is undefined > ***string***:1:<top-level>:Undefined Name > Traceback: called from eval: define __isis_tmp_ffname__() {return dustscat;} > ... > > Any insight into why XSPEC knows about the local models but ISIS doesn't? Before using the dustscat model in isis, did you explicitly load the xspec module via require("xspec") ? I ask because isis autoloads the xspec module only for models that appear in xspec itself. autoload doesn't work for local models so they will only get defined when the xspec module is explicitly loaded with LMODDIR appropriately defined. If you run isis with the '-v' option, then load the xspec module, you should see what files are being loaded. For example, try: % setenv LMODDIR /usr/local/xspec_lmodels/i686 % isis -v ... isis> require ("xspec"); This should show the path to the local model library as it is loaded. Does that help? Thanks, -John ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Fri Oct 11 2013 - 11:40:05 EDT
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:47 EDT