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

global_params: conflicting parameter names #554

Open ceball opened 10 years ago

ceball commented 10 years ago

Converted from SourceForge issue 2545565, submitted by ceball Submit Date: 2009-01-29 14:18 GMT

e.g.

[goshawk]v1cball: ./topographica -c name=4 -i Time: 000000.00 global_params: Warning: 'name=4' is unused.

(name is a parameter of param.Parameterized)

Submitted by ceball Date: 2011-10-08 10:02 GMT

It's a minor problem!
From the tracker item:
"
[goshawk]v1cball: ./topographica -c name=4 -i
Time: 000000.00 global_params: Warning: 'name=4' is unused.
(name is a parameter of param.Parameterized)
"
Note that was with "-c", not "-p". There shouldn't be a warning (or at
least, not this warning). Compare with "bob":
ceball@fiver:~/topographica-git$ ./topographica -c bob=4
ceball@fiver:~/topographica-git$ ./topographica -p bob=4
Time: 000000.00 global_params: Warning: 'bob' is unused.
There's only a warning because global_params is a Parameterized
instance and therefore has a name parameter.

Ah, subtle. I didn't notice the -c. Is this a general problem? Does a Parameterized just have the one parameter, name? If so, maybe there could be a special case, not warning if name is unused, and then we'd never have to worry about anything else.