Hi Gilad,
sounds like you want to "rescue" the last highest sequence member:
Basically, what you'd do is in the constructor
1. initialize variable d_max=0
Now, the calls to general_work will have to do the following
2. local variable to_produce = 0, i = 0
3. take input sample i ; for i <
Hi again,
Does anybody have an idea or a pointer to (i) the methodological way to
solve the logical problem; (ii) solving the "is requesting more input data
than we can provide" error; (iii) solving another error (wasn't mentioned
before) from the same code block "Buffer too small for
I did generalize and simplify the problem presented to make it simpler.
The real calculation of the arbitrary-length sequence is made inside the
block. The block is actually a sync block. Some (not all) of the items it
outputs are tagged. Tags are determined by the calculation ran on the
sequence.
On Sun, Oct 15, 2017 at 10:59 PM, Gilad Beeri (ApolloShield) <
gi...@apolloshield.com> wrote:
> I'm writing a Python block that, in general, does the following:
> Input: a stream of numbers (assume integers for the sake of discussion).
> Output: a stream of numbers
>
…
> Note: The sequences can
I'm writing a Python block that, in general, does the following:
Input: a stream of numbers (assume integers for the sake of discussion).
Output: a stream of numbers
I made some generalizations to the real problem to simplify the question.
The block looks for sequences of positive integers and