On 08/13/2014 08:26 AM, Gilad Cohen wrote:
Hi Adrian,
Thanks for the quick reply.
I am running this only in one version of python. Python version 2.7.6.
I using SPYDER 2.2.5 that came with python(x,y) version 2.7.6.1. My
operating system is windows 7, 64bit.
I didn't run this code on different version of python.
The goal of this script is just to create 100 new folders.
I also import:
from brian import *
from numpy import *
Do you think it has something there that interfere with SPYDER?
As I mentioned before, SPYDER manages to create 100 folders ONLY if I
copy the code to the console. SPYDER creates just 4 folders when I run
the code in a new dedicated python interpreter. Try to run the code
(with the additional imports) and see for yourself. I can work with this
bug, but it is not very convenient.
It is bug only in that integer division is a bug. The easiest fix is to
change:
m=modularity/100
to:
m=modularity/100.0
One of those, better to be explicit things:)
this will force float division.
See Carlos's post for why you where seeing different behavior in the
console.
Best,
Gilad
--
Adrian Klaver
[email protected]
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.