Closed russelljjarvis closed 6 years ago
set_backend
does a check for which models live inside backends.py
. We can fix this by having it instead search inside backends/__init__.py
, where we will have all the backends in the various other files (including backends/neuron.py
) imported.
How complicated would these expressions for searching look? If they are simple expressions than I agree.
Simple. I'll take care of it on Monday.
Yes, actually come to think of it we need it for PyNN and Brian, you want backends to grow with increasing neuronunit support. We can't make the file ~1,000s of line long.
See implementation in 294c0db9b8adb008ec48bcbe6c9737130302d970
Fixed.
reduced.py needs Backend NEURON to reside in the same file. One strategy might involve just making code climate ignore backends.py file. As shortening files may not always make code more maintainable.
At the bottom of neuronunit/models/backends.py I have:
possibly not the standard pattern for expanding out a module.