Skip to content

Commit 6788982

Browse files
committed
refactor: remove unused imports and clean up main execution block
1 parent fbff7bf commit 6788982

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

brainpy/__init__.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -150,36 +150,3 @@
150150
import brainpy.state as state
151151
except:
152152
pass
153-
154-
if __name__ == '__main__':
155-
connect
156-
initialize, # weight initialization
157-
optim, # gradient descent optimizers
158-
losses, # loss functions
159-
measure, # methods for data analysis
160-
inputs, # methods for generating input currents
161-
encoding, # encoding schema
162-
checkpoints, # checkpoints
163-
check, # error checking
164-
mixin, # mixin classes
165-
algorithms, # online or offline training algorithms
166-
check, tools, errors, math
167-
BrainPyObject,
168-
integrators, ode, sde, fde
169-
Integrator, JointEq, IntegratorRunner, odeint, sdeint, fdeint
170-
DynamicalSystem, DynSysGroup, Sequential, Dynamic, Projection
171-
receive_update_input, receive_update_output, not_receive_update_input, not_receive_update_output
172-
VarDelay
173-
dnn, layers, dyn
174-
NeuGroup, NeuGroupNS
175-
share
176-
reset_level, reset_state, save_state, load_state, clear_input
177-
DSRunner, LoopOverTime, running
178-
DSTrainer, BPTT, BPFF, OnlineTrainer, ForceTrainer,
179-
OfflineTrainer, RidgeTrainer
180-
analysis
181-
visualize
182-
train
183-
channels, neurons, synapses, rates, synouts, synplast
184-
Base
185-
ArrayCollector, Collector, errors

brainpy/dyn/projections/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515
from brainpy.mixin import ReturnInfo
16+
import brainpy.math as bm
1617

1718

1819
def _get_return(return_info):

0 commit comments

Comments
 (0)