[kepler-users] Sequence to Array problem
Christopher Brooks
cxh at eecs.berkeley.edu
Wed Jan 20 12:36:20 PST 2010
Hi Tomasz,
The problem is that in sta-1.xml, after running with
an array of three elements, and then changing the Const
to an array of two elements, the SequenceToArray actor
is not being enabled.
The issue seems to be with the arrayLength PortParameter
of SequenceToArray.
If I animate execution, then I can see that the ArrayToSequence
is firing before the ArrayLength actor. It appears that
the SequenceToArray actor is not being enabled after the arrayLength
gets updated.
I tried to create a regular model that illustrated this bug
by using a Sequence actor instead of a Const but could not replicate
the bug.
However, I was able to create a Tcl test that reads in the model, runs
it, checks the output, changes the Const and then runs the model again.
I've included the Ptolemy model that is used in the test. Note that
the model writes to stdout for testing purposes.
I'll see if I can take a look at this with Edward.
_Christopher
On 1/20/10 2:17 AM, Tomasz Żok wrote:
> Hi,
>
> I'd also like to post the simplest example workflows showing exactly when this
> bug occurs.
>
> In the attachment you can find sta-1.xml and sta-2.xml. Both workflows produce
> an array out of set of tokens.
>
> Please load sta-1.xml and run it. You will see {"aaa", "bbb", "ccc"} in the
> display. Right next after this execution, delete the token "ccc" from the
> input data and run the workflow. You will get no output at all.
>
> In the sta-2.xml do just the same steps. But in this case, you will correctly
> see {"aaa", "bbb", "ccc"} and later {"aaa", "bbb"}
>
> Both workflows should act the same, but only the second one works
>
> Regards,
> Tomek
>
>
>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SequenceToArrayDDF.xml
Type: text/xml
Size: 5987 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20100120/b13210da/attachment.xml>
More information about the Kepler-users
mailing list