Embedded Python Block - Variable Input Vector

2020-08-12 Thread Tim Huggins
I created an embedded python block (using version 3.9 from git) successfully but I need the input vector to be variable size based on the parameters. For example: in_sig=[(np.byte, a*b)], out_sig=[(np.byte, a*b)] However, the parameters have defaults and defaults appear to set the vector. I

Re: Problem with Python OOT

2021-01-20 Thread Tim Huggins
sample by sample.  Therefore, len(input_items[0] = len(input_items[1] =  len(input_items[2], is this not correct? Thanks again for your help and patience. I appreciate it very much! Regards,George    , , use the appropriate length for each input  On Wed, Jan 20, 2021 at 10:51 AM Tim Huggins wrote

Re: Problem with Python OOT

2021-01-18 Thread Tim Huggins
George, I have made several OOT Python blocks with variable numbers of inputs and outputs and while I could very easily be overlooking something the error does not, at first glance, appear to be in the code that you have sent out. Can you send the rest of your yml file (and potentially the

Re: How to set variable number of inputs/outputs in Python OOT modules

2021-02-04 Thread Tim Huggins
when I tried to run it.! Thanks again for your suggestion!Regards,George On Thu, Feb 4, 2021 at 8:01 AM Tim Huggins wrote: George, I would recommend taking a look at some of the existing blocks that have variable inputs to accomplish this (especially for the YML file). A YML example