On Sun, Aug 31, 2014 at 7:12 PM, Juan Christian
wrote:
> I've been using PyCharm to code in Python but it seems a bit "overpowered"
> for this task, and there are some annoying bugs. I used Sublime Text 2 in
> the past, but it seems to be dead now (last update was JUN/2013), so I don't
> really kn
On Monday, September 01, 2014 08:12 AM, Juan Christian wrote:
> I've been using PyCharm to code in Python but it seems a bit
> "overpowered" for this task, and there are some annoying bugs. I used
> Sublime Text 2 in the past, but it seems to be dead now (last update
> was JUN/2013), so I don't rea
Sorry Peter, but you message is blank here. I (and presumedly the others)
can't read a thing.
On Monday, September 1, 2014, Peter Romfeld
wrote:
> On Monday, September 01, 2014 08:12 AM, Juan Christian wrote:
>
> I've been using PyCharm to code in Python but it seems a bit "overpowered"
> for t
On Mon, Sep 01, 2014 at 09:14:15AM -0300, Juan Christian wrote:
> Sorry Peter, but you message is blank here. I (and presumedly the others)
> can't read a thing.
Peter's message is tucked away at the very end of the quoted text, after
the footer, with no blank line separating it from the quotes.
On Sunday, 31 Aug 2014 21:12, Juan Christian wrote:
> I've been using PyCharm to code in Python but it seems a bit "overpowered"
> for this task, and there are some annoying bugs.
> What do you guys use to code?
While I haven't really noticed any big bugs in PyCharm apart from the
dog-slow debu
- Original Message -
> From: Peter Otten <__pete...@web.de>
> To: tutor@python.org
> Cc:
> Sent: Monday, September 1, 2014 1:17 AM
> Subject: Re: [Tutor] how import a module upon instantiation of a class?
>
> Albert-Jan Roskam wrote:
>
>> I want to import a module upon instantiati
Hi,
I was playing with abc for the first time (never ever had any use for it). It
works nicely with methods and properties.
But is there also a way to enforce that class Concrete has an attribute 'foo'
of type 'list'? I could of course write a 'foo' property, but I was hoping
there was a direct
On Mon, Sep 01, 2014 at 11:57:08AM +1000, Cameron Simpson wrote:
> On 01Sep2014 11:13, Steven D'Aprano wrote:
> >Just recently, I've customised my interactive Python with a powerful set
> >of tab completion commands, similar to that provided by IPython. While
> >typing, if I hit tab, it will try t
On Mon, Sep 01, 2014 at 06:46:41AM -0700, Albert-Jan Roskam wrote:
> >> def __init__(self):
> > global some_nonbuiltin
> > import some_nonbuiltin
>
> Ahh with 'global', thank you! It never crossed my mind that this
> should be used in this case. Within functions, 'global
Dear all,
I'll try to write a pipeline starting from a csv file where I write the name
and the path of my files.
example.csv
Name,FASTQ1,FASTQ2,DIRECTORY
sampleA,A_R1_.fastq.gz,A_R2_.fastq.gz,108,~/FASTQ/
sampleB,B_R1_.fastq.gz,B_R2_.fastq.gz,112,~/FASTQ/
On that list I need to send each time 3
Hello, I'm trying to counting vehicle, but I can't increasing it, I use
python 2.7.6 and opencv 2.4.9
Here the code:
import cv2
bgsMOG = cv2.BackgroundSubtractorMOG2(500,30,True)
cap = cv2.VideoCapture("d:\MOV_5680.avi")
counter=0
if cap:
while True:
ret, frame = cap.read(
Hello, I'm trying to counting vehicle, but I can't increasing it, I use
python 2.7.6 and opencv 2.4.9
Here the code:
import cv2
bgsMOG = cv2.BackgroundSubtractorMOG2(500,30,True)
cap = cv2.VideoCapture("d:\MOV_5680.avi")
counter=0
if cap:
while True:
ret, frame = cap.read(
On 01/09/14 15:13, Steven D'Aprano wrote:
To make it a global name, you need the global keyword:
py> def cheese(): # take two
... global string
... import string
...
py> cheese()
py> string
And co ing back to Albert's original request this little insight made me
try something and i
On 01/09/14 14:59, Steven D'Aprano wrote:
(Question: anyone know how to tell readline to jump straight to a
particular history line? M-< goes to the oldest line in the history, and
M-> goes to the most recent, but how would I go straight to line 87?)
Bash readline allows backwards searches of
On 01/09/14 16:13, Whees Northbee wrote:
Hello, I'm trying to counting vehicle, but I can't increasing it, I use
python 2.7.6 and opencv 2.4.9
I don;t understand what you mean.
There is no vehicle in your code?
The code is overly complex for me to read through and it uses a module
that I don'
On Mon, Sep 01, 2014 at 04:55:09PM +0100, Alan Gauld wrote:
> And co ing back to Albert's original request this little insight made me
> try something and it seems to work...
>
> You can assign the name inside the class, thus providing the class level
> import that Albert wanted:
>
> >>> class
On Mon, Sep 01, 2014 at 10:20:02PM +0700, Whees Northbee wrote:
> for contour, hier in zip(contours, hierarchy):
> (x,y,w,h) = cv2.boundingRect(contour)
What is the value of y here?
Insert a line "print(x, y, w, h)" so you can see what values they take.
>
On Sun, Aug 31, 2014 at 5:12 PM, Juan Christian
wrote:
> I've been using PyCharm to code in Python but it seems a bit "overpowered"
> for this task, and there are some annoying bugs. I used Sublime Text 2 in
> the past, but it seems to be dead now (last update was JUN/2013), so I don't
> really kn
Thanks everyone.
I will try tabhistory, since I'm using Python 3.4.1 it comes built-in in
the IDLE, as the site says, "(Python 3.4 comes with these enabled as
standard.)", so, I'll definitely try IDLE.
I like PyCharm but I prefer a "calm and clear" environment in order to
code. I'll keep using Su
>What is the value of y here?
(x,y,w,h)=cv2.boundingRect(contour), where x,y is the left up position from
contour, and w,h is width and height of contour..
>* if w > 10 and h > 15:*
*this code I used, because there's a lot small blob from video
shaking, or the movement of trees..
There's no vehicle in my code, my video just contain vehicles so I think I
don't need to use haar classifier, so I'm just do background subtraction to
get foreground which is vehicle movement because there's no other movement
except vehicle and maybe little movement from trees...
I just use opencv
On 01/09/14 19:34, Juan Christian wrote:
+ cmd.exe for coding,
If you are not a cmd.exe regular make sure you read the help page
and enable all the extra features that are turned off by default...
Things like file and command completion for example.
It makes cmd.exe a much more usable place.
I'm going to test a linter for ST3, but there are tons of options for
Python and I got confused.
https://sublime.wbond.net/packages/SublimeLinter-pyflakes
https://sublime.wbond.net/packages/SublimeLinter-pylint
https://sublime.wbond.net/packages/SublimeLinter-pep8
https://sublime.wbond.net/package
On Tue, Sep 02, 2014 at 12:54:03AM +0700, Whees Northbee wrote:
> >What is the value of y here?
> (x,y,w,h)=cv2.boundingRect(contour), where x,y is the left up position from
> contour, and w,h is width and height of contour..
That's not the value of y. You have just repeated the same line of code
On Tue, Sep 02, 2014 at 01:15:59AM +0700, Whees Northbee wrote:
> There's no vehicle in my code, my video just contain vehicles so I think I
> don't need to use haar classifier, so I'm just do background subtraction to
> get foreground which is vehicle movement because there's no other movement
> e
- Original Message -
> From: Steven D'Aprano
> To: tutor@python.org
> Cc:
> Sent: Monday, September 1, 2014 9:47 PM
> Subject: Re: [Tutor] How to count vehicle? I'm trying but my code don't
> increasing..
>
> On Tue, Sep 02, 2014 at 01:15:59AM +0700, Whees Northbee wrote:
>> T
On 01Sep2014 23:59, Steven D'Aprano wrote:
On Mon, Sep 01, 2014 at 11:57:08AM +1000, Cameron Simpson wrote:
On 01Sep2014 11:13, Steven D'Aprano wrote:
>Just recently, I've customised my interactive Python with a powerful set
>of tab completion commands, similar to that provided by IPython. Whi
Until now I have used IDLE to write and run programs. I decided it was time to
do it the hard way and use only a Terminal and a plain text editor,
TextWrangler. I have Python 3.4.1 and OS 10.8.5. When I run the script by
calling for the interpreter in the terminal with the script as the paramete
So guys, I'll be using this one (
https://sublime.wbond.net/packages/SublimeLinter-flake8), why?
Because acording to Python Package Index (
https://pypi.python.org/pypi/flake8), this linter uses:
1. PyFlakes
2. pep8
3. Ned Batchelder's McCabe script
I don't have a clue what the n3 does, but the
Jan Karel Schreuder wrote:
> Until now I have used IDLE to write and run programs. I decided it was
> time to do it the hard way and use only a Terminal and a plain text
> editor, TextWrangler. I have Python 3.4.1 and OS 10.8.5. When I run the
> script by calling for the interpreter in the termina
Forget guys, we have the true winner, Anaconda (
https://sublime.wbond.net/packages/Anaconda)
Anaconda turns your Sublime Text 3 in a full featured Python development
IDE including autocompletion, code linting, IDE features, autopep8
formating, McCabe complexity checker and Vagrant for Sublime Tex
31 matches
Mail list logo