[Tutor] order loop from methos on class

2015-01-26 Thread jarod...@libero.it
Dear All, What is the best way to loop on methos on a class? class Rna(): def trim(): ... def align(): ... ena = Rna() ena.trim() ena.aling() Thanks for any suggestion!!! ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] order loop from methos on class

2015-01-26 Thread Steven D'Aprano
On Mon, Jan 26, 2015 at 11:48:52AM +0100, jarod...@libero.it wrote: > > > Dear All, > What is the best way to loop on methos on a class? I do not understand the question. Can you explain in more detail? > class Rna(): > def trim(): > ... > def align(): > ... Both metho

Re: [Tutor] Tutor Digest, Vol 131, Issue 59 Order loop from methos on class (jarod...@libero.it)

2015-01-26 Thread Dino Bektešević
> Message: 1 > Date: Mon, 26 Jan 2015 11:48:52 +0100 (CET) > From: "jarod...@libero.it" > To: tutor@python.org > Subject: [Tutor] order loop from methos on class > Message-ID: > <2044122047.125321422269332108.JavaMail.defaultUser@defaultHost> > Content-Type: text/plain; charset=UTF-8 > > >

[Tutor] R: Re: Tutor Digest, Vol 131, Issue 59 Order loop from methos on class (jarod...@libero.it)

2015-01-26 Thread jarod...@libero.it
Thanks so much!! Now I understood it is a stupid thing! So, could you elpme to decompose the problem? I initiazlizate the class with the file to use so all the function have all the parameters that I need. At the moment I have in mind only to do this: ena = Rna() job1 = ena.trim() job2 = ena.alig

Re: [Tutor] Tutor Digest, Vol 131, Issue 59 Order loop from methos on class (jarod...@libero.it)

2015-01-26 Thread Dino Bektešević
2015-01-26 14:54 GMT+01:00 jarod...@libero.it : > Thanks so much!! Now I understood it is a stupid thing! > So, could you elpme to decompose the problem? > I initiazlizate the class with the file to use so all the function have all > the parameters that I need. > > At the moment I have in mind only

Re: [Tutor] R: Re: Tutor Digest, Vol 131, Issue 59 Order loop from methos on class (jarod...@libero.it)

2015-01-26 Thread Alan Gauld
On 26/01/15 13:54, jarod...@libero.it wrote: I initiazlizate the class with the file to use so all the function have all the parameters that I need. At the moment I have in mind only to do this: ena = Rna() job1 = ena.trim() job2 = ena.align() It is no so elegant.. You originally posted a solu

[Tutor] Inquiry regarding GSoC 2015

2015-01-26 Thread Arpit Agarwal
Hello, I want to take part in GSoC 2015 under PSF. I am a beginner in python and have started contributing and i am also registerd at github. Please suggest as from which projects i should start for contributing as i am beginner in python. thanks. ___ T

[Tutor] SQLAlchemy

2015-01-26 Thread Mike Nickey
Hey folks, I'm working my way through Thinkful with python and I'm trying to get a setup working. Part of this setup is using SQLAlchemy. While I understand this is a python tutor list, would it be OK to ask questions like 'how do I change my SQLAlchemy URL to include a user name' here? -- ~MEN

Re: [Tutor] SQLAlchemy

2015-01-26 Thread Martin A. Brown
Greetings Mike, : I'm working my way through Thinkful with python and I'm trying to : get a setup working. Part of this setup is using SQLAlchemy. : While I understand this is a python tutor list, would it be OK to : ask questions like 'how do I change my SQLAlchemy URL to include : a us

Re: [Tutor] Inquiry regarding GSoC 2015

2015-01-26 Thread Danny Yoo
We (the Tutor list) are not a mentor for GSoC. You'll want to talk to the right organization for this, because I don't think any of us here have any direct experience with that program. GSoC has a Frequently Asked Questions that you should read: http://www.google-melange.com/gsoc/document/s

Re: [Tutor] Tutor Digest, Vol 131, Issue 59 Order loop from methos on class (jarod...@libero.it)

2015-01-26 Thread Sydney Shall
On 26/01/2015 14:41, Dino Bektešević wrote: 2015-01-26 14:54 GMT+01:00 jarod...@libero.it : Thanks so much!! Now I understood it is a stupid thing! So, could you elpme to decompose the problem? I initiazlizate the class with the file to use so all the function have all the parameters that I need

[Tutor] R: Tutor Digest, Vol 131, Issue 60 order loop from methos on class

2015-01-26 Thread jarod...@libero.it
dear all, thanks so much!! I explain better my problem :http://pastebin.com/iiPZMi2U this is my workflow. Take my data from readset an create a command list ena = Rnaseq() The order of the self.step are the order I wan to to execute my analisys. So this is the order: In [160]: ena.show() 1- tr

Re: [Tutor] R: Tutor Digest, Vol 131, Issue 60 order loop from methos on class

2015-01-26 Thread Danny Yoo
Hello, > The order of the self.step are the order I wan to to execute my analisys. > So this is the order: > In [160]: ena.show() > 1- trimmomatic > 2- merge_trimmomatic_stats > 3- star > 4- picard_sort_sam > 5- rnaseqc > 6- wiggle > 7- cufflinks > 8- cuffquant > 9- gq_seq_utils_exploratory_analys

[Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Felisha Lawrence
Hello, I have the following script: import netCDF4 import numpy as np import matplotlib.pyplot as plt import pylab ncfile = netCDF4.Dataset('30JUNE2012_0300UTC.cdf', 'r') dbZ = ncfile.variables['MAXDBZF'] data = dbZ[0,0] data.shape x = np.array([0,10,11]) y = np.array([0,15,16]) X,Y = np.meshgri

Re: [Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Alan Gauld
On 26/01/15 23:24, Felisha Lawrence wrote: Hello, I have the following script: import netCDF4 import numpy as np import matplotlib.pyplot as plt import pylab ... and I am getting this error: TypeError: You must first set_array for mappable Can anyone provide guidance on how you overlay quive

Re: [Tutor] Overlay Quiver Plot on Contours

2015-01-26 Thread Danny Yoo
>> and I am getting this error: >> >> TypeError: You must first set_array for mappable >> >> Can anyone provide guidance on how you overlay quiver plots on top of >> contours? > > > This list is for newcomers to Python and its standard > library. This looks like a fairly specific SciPy/Numpy, > and

[Tutor] functions first?

2015-01-26 Thread Alex Kleider
Please correct me if I am wrong, but I've assumed that it is proper to define all functions before embarking on the main body of a program. I find myself breaking this rule because I want to set the default values of some named function parameters based on a configuration file which I have to fi

Re: [Tutor] functions first?

2015-01-26 Thread Ben Finney
Alex Kleider writes: > Please correct me if I am wrong, but I've assumed that it is proper to > define all functions before embarking on the main body of a program. I would say rather that as much code as possible should be in small well-defined functions, with the “main body” a tiny and trivial