Are you using the brackets in the set of parameters for the morris function?
I think the debug message is telling you that you can't use brackets in the tell function for the y=[] part. Brackets in Python are lists. Alternatively, maybe M in your example is a list? Either way, it looks like you need to pass some other data structure than a list to the tell function. Sorry I'm not familiar enough with this to give you a proper example, but hopefully this gets you started. Best, Mike On Tue, Aug 28, 2012 at 4:37 AM, Filippo Monari <ingf...@gmail.com> wrote: > Hi every body, > I'm trying to use rpy to realize a python script able to perform the > Morris Method on a set of data. > I'm having a problem in using the 'tell' method. > > In R I proceed in this way: > #morris object > M=morris([set of parameters]) > #extract the input for the model and perform the simulation > #go back to R > #tell to the morris object the output of the model > tell(M, y=[model output]) > > In python I can't perform the last step: > r.tell(M, y=[model output]) > RPy_RException: Error in UseMethod("tell") : > no applicable method for 'tell' applied to an object of class "list" > > I tried several things but without success. > Please can anyone give me and advice? > Regards, > Filippo Monari > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list