ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

Unexpected global_params warning? #555

Open ceball opened 10 years ago

ceball commented 10 years ago

Converted from SourceForge issue 3440912, submitted by ceball Submit Date: 2011-11-22 00:25 GMT

Maybe it's obscure, but if in a script I have a global param "someparam" (p.someparam below) and I also make a variable "someparam", I get a warning.

[jupiter1]s0454615: cat anothertest.ty print "Executing test.ty"

from topo.misc.commandline import global_params as p import param

p.add( someparam = param.String(default='1') )

print p.someparam

someparam = "hello"

[jupiter1]s0454615: ./topographica anothertest.ty Executing test.ty 1 Time: 000000.00 global_params: Warning: 'someparam=hello' is unused.