Re: modeling question

From: John Houck <houck_at_email.domain.hidden>
Date: Wed, 29 Jul 2009 08:16:54 -0400
On Tue, Jul 28, 2009 at 17:13 -0400, Herbert Pablo wrote:
>
> So, I was trying your method and I ran into a little snag at
> step 4: newdata = get_model_counts(1); % You are getting the
> counts from the model you just fit
>
> I get the following error message:
>
> Unable to typecast Null_Type to Double_Type
> -1
> Double_Type[8192]
> Double_Type[8192]
> Double_Type[8192]
> 2
>
> I tried looking up this error but I couldn't find anything useful.
>

Hi,

People may find your posting confusing because the
'get_model_counts' function you mention did not produce the
error message you saw.

Also, the 'get_model_counts' line was not from step 4.
Step 4 was:
   new_id = define_counts(newdata);

In spite of the cryptic error message, it is possible to
determine what went wrong by looking at the documentation for
define_counts to see if it is being used correctly.

Mike's method includes these two steps:

   newdata = get_model_counts (1);
   new_id = define_counts (newdata);

Since the define_counts step failed, you should first verify
that 'newdata' is acceptable input for define_counts.  To find
out what 'newdata' is, you can either read the documentation
for get_model_counts, or just do:

   newdata = get_model_counts (1);
   print(newdata);

After comparing what define_counts got (newdata) with the input
that it requires, perhaps you can see why problem occured and
what can be done to fix it.

For other approaches to debugging slang scripts, see:
  http://www.jedsoft.org/slang/doc/html/slang.html#toc20

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:
unsubscribe
Received on Wed Jul 29 2009 - 08:17:04 EDT

This archive was generated by hypermail 2.2.0 : Fri Jul 31 2009 - 10:54:08 EDT