brian2 icon indicating copy to clipboard operation
brian2 copied to clipboard

Input() function overwritten

Open Marghepano opened this issue 5 years ago • 1 comments

When importing brian2 it is no longer possible to use the built-in function input(), to get values from the user. I.e. image I would advise to rename the module 'input' (encompassing binomial, poissongroup, poissoninput etc.)

Marghepano avatar Jun 27 '19 09:06 Marghepano

Hi, thanks for the bug report. This is something that we should indeed fix, until then you can either use

from brian2.only import *

(see https://brian2.readthedocs.io/en/stable/user/import.html) or explicitly import the input function again after importing Brian:

from brian2 import *
from builtins import input

mstimberg avatar Jun 28 '19 00:06 mstimberg