variance calculating function

2006-05-19 Thread Nandita Mangal
Hi there, I had implemented a variance actor , which calculates simple variance  given an array...however  I was wondering if i can do the same with _expression_ actor? I couldn't find a variance fcn is there one? thanks, nandita. 
		Be a chatter box. Enjoy free PC-to-PC calls  with Yahoo! Messenger with Voice.

Ptolemy Documentation Infrastructure question

2006-04-28 Thread Nandita Mangal
Hi Edward, I wanted to ask you a code specific question in "GetDocumentationAction"  from the following scenario when if a docAttribute exists (i.e CustomizeDoc has been called and  docAttribute was added via MOMLChangeRequest).  In this case , (correct me if i am wrong) we get the DocAttribute and  display it via the DocTableau. However I am unsure where the javadocs information is called in this process i.e ports n  params information and how that is displayed as well in the DocTableau. I believe in Ptolemy when one customizes  documentation both newly added docAttribute as well as original ports/params information show up. However I am unsure how & where   ports/params info (from doc/codeDoc/classname.xml in case of Ptolemy) is made to show here in the DocViewer.  I am trying to solve a Kepler bug where CustomizeDocumentation deletes  all previous ports/params information for some reason and only shows the newly added
 "DocAttribute" information.  Another interesting point in this case, is that if i just click on  "CustomizeDoc" and click "cancel"...even then an empty docAttribute is created in the MOML as follows:      The above also shows no actor documentaiton in  DocViewer.  "GetDocumentationAction" from the Ptolemy documentation structure is the  only class that i have customized in Kepler. (where i only change location of javadocs from doc/codeDoc to a  Kepler-Docs location)  Kindly feel free to correct my understanding of Ptolemy's documentation  structure working if I am wrong. Thanks so much.  nandita.   //From "GetDocumentationAction.java" DocAttribute docAttribute = (DocAttribute) docAttributes
    .get(docAttributes.size() - 1);    // Need to create an effigy and tableau.    Effigy context = Configuration.findEffigy(target);    if (context == null) {    context = Configuration.findEffigy(target.getContainer());    if (context == null) {    MessageHandler.error("Cannot find an effigy for "
    + target.getFullName());    }    }    ComponentEntity effigy = context.getEntity("DocEffigy");    if (effigy == null) {    try {    effigy = new DocEffigy(context, "DocEffigy");    } catch (KernelException exception) {
    throw new InternalErrorException(exception);    }    }    if (!(effigy instanceof DocEffigy)) {    MessageHandler.error("Found an effigy named DocEffigy that "    + "is not an instance of DocEffigy!");    }    ((DocEffigy) effigy).setDocAttribute(docAttribute);
    ComponentEntity tableau = ((Effigy)  effigy).getEntity("DocTableau");    if (tableau == null) {    try {    tableau = new DocTableau((DocEffigy) effigy,  "DocTableau");    ((DocTableau) tableau).setTitle("Documentation for "    + target.getFullName());    } catch (KernelException exception) {
    throw new InternalErrorException(exception);    }    }    if (!(tableau instanceof DocTableau)) {    MessageHandler.error("Found a tableau named DocTableau  that "    + "is not an instance of DocTableau!");    }    ((DocTableau) tableau).show()  DocAttribute docAttribute = (DocAttribute) docAttributes
    .get(docAttributes.size() - 1);    // Need to create an effigy and tableau.    Effigy context = Configuration.findEffigy(target);    if (context == null) {    context = Configuration.findEffigy(target.getContainer());    if (context == null) {    MessageHandler.error("Cannot find an effigy for "
    + target.getFullName());    }    }    ComponentEntity effigy = context.getEntity("DocEffigy");    if (effigy == null) {    try {    effigy = new DocEffigy(context, "DocEffigy");    } catch (KernelException exception) {
    throw new InternalErrorException(exception);    }    }    if (!(effigy instanceof DocEffigy)) {    MessageHandler.error("Found an effigy named DocEffigy that "    + "is not an instance of DocEffigy!");    }    ((DocEffigy) effigy).setDocAttribute(docAttribute);
    ComponentEntity tableau = ((Effigy)  effigy).getEntity("DocTableau");    if (tableau == null) {    try {    tableau = new DocTableau((DocEffigy) effigy,  "DocTableau");    ((DocTableau) tableau).setTitle("Documentation for "    + target.getFullName());    } catch (KernelException exception) {
    throw new InternalErrorE

ptolemy matlab

2006-03-23 Thread Nandita Mangal
hi there,I am currently using gcc version 3.4.4 with cygwin. Is that version known to be compatible with the Ptolemy Matlab interface?Currently running make under ptolemy/matlab gives gcc: no input files error.( i  am  in middle of downloading cygwindevel.exe but unsure if gcc version with that cygwin installation is 3.2 or not)I have matlab 6.5 installed  (WIndows os)thanks!nandita.
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

Re: HTML Viewer Tableau ,Displaying WelcomeScreen

2006-03-06 Thread Nandita Mangal
Also intro.htm requires _javascript_ to close etc...Nandita Mangal <[EMAIL PROTECTED]> wrote: Hi Christopher,I have developed an "intro.htm" as per Laura's design layout and it looks ok in a normal web browser. When displayed in the HTML ViewerTableau after kepler has started,  the  display settings  of the welcome screen seem to change w.r.t color of tables and extra characters for some reason.i am attaching both original intro.html file as well as the display with Tableau.I will in the meantime look more into Tableau Viewer to try to figure out the reason for the display changes.thanks,nandita.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com !
   Welcome to Kepler 1.0A collaborative environment   for creating and executing  scientific workflows   GettingStarted  User's Guide   Worfklow CookBook   Show this dialog upon startup  
		Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 


Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
  thanks for the link! Also I guess i can use PlotBox.exportImage() to getBufferedImage of plot instead.  Christopher Brooks <[EMAIL PROTECTED]> wrote:  Hi Nandita,Ptplot can export Encapsulated Postscript (EPS) files, see the PlotBox.export() method.We have contributed code for exporting to png, but did not fold it inbecause it is probably GPL'd and want to keep Ptplot clean of GPL.The code can be found athttp://ptolemy.eecs.berkeley.edu/java/ptplot/exportPNG-0.0.1.patch.gzIt might be possible to do this in a non-GPL'd fashion.Or, you could hack in the changes and see if it works for you._Christopher well its an infinitely looping workflow, & I  keep getting values to plot.So I was thi!
 nking of
 makign the user  specify how long  he wanted to video t   o be (like 2-4 mins) and  depending on that (with refresh rate of specifiiedsecs) get the images.  Thanks!  nandita.Matthew Brooke  wrote:   > images delay about 10-15 secs...and how many images in total?    mNandita Mangal wrote:> Thanks for the quick reply! I guess I can create an actor which > repeatedly takes screenshots (given a certain refresh rate) and saves to > files as you suggested :).> images delay about 10-15 secs.> > > */Matthew Brooke /* wrote:> > > Nandita -> > How many images, and what delay between images? If it's a reasonable> number and you have time between refreshes, you could simply do>
 screenshots and then crop them to isolate the plot. Obviously, this> becomes way too labor-intensive as the number of images increases...:-)> > m> > > Nandita Mangal wrote:>  > Hi there,>  > Thats a good idea. Are there any clues/ links on how to save the> plot as>  > an image in ptolemy?>  > Thanks!>  > nandita.>  >>  > */Kevin Ruland /* wrote:>  >>  >>  > Nandita,>  >>  > Don't know about an actor, but you can take a sequence of static    > images>  > and make them into a movie (animated gif or mpeg) using ImageMagic   k.>  >>  > Kevin>  >>  > Nandita Mangal
 wrote:>  > > Hi there,>  > > I had a question, if there are any actors /ways to store the> results>  > > plotted on an XY Plotter as a video? My workflow continously plo   ts>  > > data in a loop and can i store the result at some point as> video? If>  > > not can i store graph as an image?>  > > thanks!>  > > nandita.>  > >>  > >>  >> -   --->  > > Do you Yahoo!?> With a free 1 GB, there's more in store with>  > Yahoo! Mail.>  > >>  >>  >>  >>  >>
 -   --->  > Posted to the ptolemy-hackers mailing list. Please send> administrative>  > mail for this list to:> [EMAIL PROTECTED]>  >>  >>  > __>  > Do You Yahoo!?>  > Tired of spam? Yahoo! Mail has the best spam protection around>  > http://mail.yahoo.com>  >> > -- > > -> Matthew Brooke, Ph.D.> Marine Sciences Research Building, Room #3407> University of California> Santa Barbara, CA 93106-6150> ph: (805) 893-7108 fx: 805-893-8062> [EMAIL PROTECTED]
 .edu 
   > -> > > > > What are the most popular cars? Find out at Yahoo! Autos > >  >-- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-Posted to the ptolemy-hackers mailing list.  Please send administrativemail for this list to: [EMAIL PROTECTED]
		  
What are the most popular cars? Find out at Yahoo! Autos 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
well its an infinitely looping workflow, & I  keep getting values to plot. So I was thinking of makign the user  specify how long  he wanted to video to be (like 2-4 mins) and  depending on that (with refresh rate of specifiied secs) get the images.  Thanks!  nandita.Matthew Brooke <[EMAIL PROTECTED]> wrote:   > images delay about 10-15 secs...and how many images in total?mNandita Mangal wrote:> Thanks for the quick reply! I guess I can create an actor which > repeatedly takes screenshots (given a certain refresh rate) and saves to > files as you suggested :).> images delay about 10-15 secs.> > > */Matthew Brooke /* wrote:> > > Nandita -> > How!
  many
 images, and what delay between images? If it's a reasonable> number and you have time between refreshes, you could simply do> screenshots and then crop them to isolate the plot. Obviously, this> becomes way too labor-intensive as the number of images increases... :-)> > m> > > Nandita Mangal wrote:>  > Hi there,>  > Thats a good idea. Are there any clues/ links on how to save the> plot as>  > an image in ptolemy?>  > Thanks!>  > nandita.>  >>  > */Kevin Ruland /* wrote:>  >>  >>  > Nandita,>  >>  > Don't know about an actor, but you can take a sequence of static> images>  > and make them into a movie (animated gif or mpeg) using ImageMagick.>  >>  > Kevin>  >!
 ;>
  > Nandita Mangal wrote:>  > > Hi there,>  > > I had a question, if there are any actors /ways to store the> results>  > > plotted on an XY Plotter as a video? My workflow continously plots>  > > data in a loop and can i store the result at some point as> video? If>  > > not can i store graph as an image?>  > > thanks!>  > > nandita.>  > >>  > >>  >> >  > > Do you Yahoo!?> With a free 1 GB, there's more in store with>  > Yahoo! Mail.>  > >>  >>  >>  >>  >> >  > Posted to the ptolemy-hackers maili!
 ng list.
 Please send> administrative>  > mail for this list to:> [EMAIL PROTECTED]>  >>  >>  > __>  > Do You Yahoo!?>  > Tired of spam? Yahoo! Mail has the best spam protection around>  > http://mail.yahoo.com>  >> > -- > > -> Matthew Brooke, Ph.D.> Marine Sciences Research Building, Room #3407> University of California> Santa Barbara, CA 93106-6150> ph: (805) 893-7108 fx: 805-893-8062> [EMAIL PROTECTED]> -> > > > > What are the most popular cars? Find out at Yahoo! !
 Autos
 > >  >-- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
Thanks for the quick reply! I guess I can create an actor which  repeatedly takes screenshots (given a certain refresh rate) and saves  to files as you suggested :).  images delay about 10-15 secs.   Matthew Brooke <[EMAIL PROTECTED]> wrote:  Nandita -How many images, and what delay between images? If it's a reasonable number and you have time between refreshes, you could simply do screenshots and then crop them to isolate the plot. Obviously, this becomes way too labor-intensive as the number of images increases... :-)mNandita Mangal wrote:> Hi there,> Thats a good idea. Are there any clues/ links on how to save the plot as > an image in ptolemy?> Thanks!> nandita.> > */Kevin Ruland /* wrote:!
 >
 > > Nandita,> > Don't know about an actor, but you can take a sequence of static images> and make them into a movie (animated gif or mpeg) using ImageMagick.> > Kevin> > Nandita Mangal wrote:>  > Hi there,>  > I had a question, if there are any actors /ways to store the results>  > plotted on an XY Plotter as a video? My workflow continously plots>  > data in a loop and can i store the result at some point as video? If>  > not can i store graph as an image?>  > thanks!>  > nandita.>  >>  >> >  > Do you Yahoo!?> With a free 1 GB, there's more in store with> Yahoo! Mail.>  >> > > >
 > Posted to the ptolemy-hackers mailing list. Please send administrative> mail for this list to: [EMAIL PROTECTED]> > > __> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around> http://mail.yahoo.com> -- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-
		  
What are the most popular cars? Find out at Yahoo! Autos 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
Hi there,Thats a good idea. Are there any clues/ links on how to save the plot as an image in ptolemy?Thanks!nandita.Kevin Ruland <[EMAIL PROTECTED]> wrote:  Nandita,Don't know about an actor, but you can take a sequence of static images and make them into a movie (animated gif or mpeg) using ImageMagick.KevinNandita Mangal wrote:> Hi there,> I had a question,  if there are any  actors /ways to store the results > plotted on an XY Plotter as a video? My workflow continously plots > data in a loop and can i store the result at some point as video? If > not can i store graph as an image?> thanks!> nandita.>> > Do you Yahoo!?>
 With a free 1 GB, there's more in store with Yahoo! Mail. >  Posted to the ptolemy-hackers mailing list.  Please send administrativemail for this list to: [EMAIL PROTECTED]__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Storing XYPlotter graph as video

2006-01-25 Thread Nandita Mangal
Hi there,  I had a question,  if there are any  actors /ways to store  the results plotted on an XY Plotter as a video? My workflow  continously plots data in a loop and can i store the result at some  point as video? If not can i store graph as an image?  thanks!  nandita.  
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.

Re: Importing jar files

2006-01-21 Thread Nandita Mangal
Hi Chirstopher,  Thanks for looking into possible reasons for the exceptions. I don't  get any exceptions when the vergil shows up the JAI actors now , as you  suggested JAI implementation jars namely jai_core.jar &  jai_codec.jar needed to be placed it in the right JDK.  Currently I have the class files for all JAI actors in  ptolemy/actor/lib/jai & the implementation jars in the JDK  folder.However, now when I run the the actors/ other demos , I get the  following exception:  Error: IOException occurs when search for propriate codecs.  Occurs in: com.sun.media.jai.codec.ImageCodec  java.io.IOException: The handle is invalid      at java.io.RandomAccessFile.seek(Native Method)      at com.sun.media.jai.codec.FileCacheSeekableStream.readUntil(FileCacheSe  ekableStream.java:129)      at
 com.sun.media.jai.codec.FileCacheSeekableStream.read(FileCacheSeekabl  eStream.java:266)      at com.sun.media.jai.codec.SeekableStream.readFully(SeekableStream.java:  327)      at com.sun.media.jai.codec.SeekableStream.readFully(SeekableStream.java:  306)      at com.sun.media.jai.codec.ImageCodec.getDecoderNames(ImageCodec.java:27  4)      at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:80)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.  java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces  sorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:585)      at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)      at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.jav  a:1682)      at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeO  perationRegistry.java:481)      at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)      at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)      at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)      at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)   &nb!
 sp; 
 at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)      at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)      at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)      at ptolemy.actor.lib.jai.JAIImageToken.asAWTImage(JAIImageToken.java:95)    at ptolemy.actor.lib.image.ImageTableau.display(ImageTableau.java:197)      at ptolemy.actor.lib.image.ImageTableau.append(ImageTableau.java:139)      at ptolemy.actor.gui.TokenEffigy.setTokens(TokenEffigy.java:218)      at ptolemy.actor.lib.image.ImageDisplay._display(ImageDisplay.java:243)      at
 ptolemy.actor.lib.image.ImageDisplay$2.run(ImageDisplay.java:209)      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh  read.java:242)      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre  ad.java:163)      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)  Exception in thread "AWT-EventQueue-0"
 java.lang.RuntimeException: - Unable to render RenderedOp for this operation.      at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:838)      at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)      at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)      at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)      at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)      at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)      at ptolemy.actor.lib.jai.JAIImageToken.asAWTImage(JAIImageToken.java:95)    at
 ptolemy.actor.lib.image.ImageTableau.display(ImageTableau.java:197)      at ptolemy.actor.lib.image.ImageTableau.append(ImageTableau.java:139)      at ptolemy.actor.gui.TokenEffigy.setTokens(TokenEffigy.java:218)      at ptolemy.actor.lib.image.ImageDisplay._display(ImageDisplay.java:243)      at ptolemy.actor.lib.image.ImageDisplay$2.run(ImageDisplay.java:209)      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh  read.java:242)      at
 java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre  ad.java:163)      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)    at java.awt

Importing jar files

2006-01-20 Thread Nandita Mangal
Hi there,I have a very basic question on importing the jar files for the JAI actors.Currently I am able to make the class files in pttII/ptolemy/actor/lib/jai folder.And when I run vergil (it shows up JAI actors with  exceptions)basically I am unable to make ptolemy load the jai jar  files during vergil.  I placed the jar files in actor/lib.  I refered to "Add an Actor" page & my actors do show up , but am facing the jar issue, probably not doing something right...   thanks,  nandita.  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

adding an actor

2006-01-13 Thread Nandita Mangal
   Hi there,Is the latest way of adding actor still the following:/ptII/doc/coding/addinganactor.htmI want the exising ptolemy JAI actors to show up on the panel in vergil(ptolemy/actor/lib/jai) in ptolemy.On adding a sample JAICrop.java / to $PTII/ptolemy/actor/lib/makefileand running make gave me:/cygdrive/c/Project/ptII/ptolemy/actor/lib$ makemake: *** No rule to make target `JAICrop.java', needed by `jclass'.Stop.Is there something else to be added in the makefile?thanks!nandita.Kepler ProjectSDSC.  
		Yahoo! Photos – Showcase holiday pictures in hardcover 
Photo Books. You design it and we’ll bind it!