On Fri, Feb 24, 2006 at 20:21 -0500, Nat Butler wrote: > Hi, > > I've been having this problem since version 1.2.9 or so: > > isis> define rebin_error_hook (orig_cts, orig_stat_err, grouping) { > return sqrt(rebin_array (orig_stat_err^2, grouping)); > } > isis> set_rebin_error_hook (1, "rebin_error_hook"); > *** Failed: setting dataset 1 rebin error hook = 'rebin_error_hook' > /opt/isis-1.3.2/share/hist-cmds.sl:593:set_rebin_error_hook:Run-Time Error > > Any ideas? I'm running debian linux, 2.6 series. The problem is there if > I use the precompiled binaries or build my own. > It looks like a namespace issue. It should work if you declare the rebin_error_hook function to be public: isis> public define rebin_error_hook (orig_cts, orig_stat_err, grouping) { return sqrt(rebin_array (orig_stat_err^2, grouping)); }; isis> set_rebin_error_hook (1, "rebin_error_hook"); isis> For the next release, I'll modify the function so that it can also take a function reference: set_rebin_error_hook (1, &rebin_error_hook) then the 'public' qualifier will no longer be necessary. 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 Feb 24 2006 - 20:37:12 EST
This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:51 EDT