From e67f142d57b160acd7613f92656c16b3e6856b09 Mon Sep 17 00:00:00 2001 From: chaoming Date: Tue, 5 Sep 2023 14:44:24 +0800 Subject: [PATCH] deprecations --- brainpy/channels.py | 6 ++++++ brainpy/layers.py | 6 ++++++ brainpy/neurons.py | 4 ++++ brainpy/rates.py | 5 +++++ brainpy/synapses.py | 6 ++++++ brainpy/synouts.py | 6 ++++++ brainpy/synplast.py | 4 ++++ 7 files changed, 37 insertions(+) diff --git a/brainpy/channels.py b/brainpy/channels.py index 1c198e670..fe7e61483 100644 --- a/brainpy/channels.py +++ b/brainpy/channels.py @@ -1,4 +1,10 @@ # -*- coding: utf-8 -*- + +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + + from .dyn.channels import * from .dyn.ions import * diff --git a/brainpy/layers.py b/brainpy/layers.py index 80511bef7..84b261b3e 100644 --- a/brainpy/layers.py +++ b/brainpy/layers.py @@ -1,2 +1,8 @@ + +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dnn`` module instead. +""" + + from .dnn import * diff --git a/brainpy/neurons.py b/brainpy/neurons.py index 9f41ae089..afb2dbadc 100644 --- a/brainpy/neurons.py +++ b/brainpy/neurons.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + from brainpy._src.dynold.neurons.biological_models import ( HH as HH, MorrisLecar as MorrisLecar, diff --git a/brainpy/rates.py b/brainpy/rates.py index 10f7e4873..47e96485a 100644 --- a/brainpy/rates.py +++ b/brainpy/rates.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- + +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + from .dyn.rates import * diff --git a/brainpy/synapses.py b/brainpy/synapses.py index 176c7cba7..572ccfa3b 100644 --- a/brainpy/synapses.py +++ b/brainpy/synapses.py @@ -1,5 +1,11 @@ # -*- coding: utf-8 -*- + +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + + from brainpy._src.dynold.synapses.base import ( _SynSTP as SynSTP, _SynOut as SynOut, diff --git a/brainpy/synouts.py b/brainpy/synouts.py index 8e2b214c9..b00bc62a3 100644 --- a/brainpy/synouts.py +++ b/brainpy/synouts.py @@ -1,5 +1,11 @@ # -*- coding: utf-8 -*- + +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + + from brainpy._src.dynold.synouts.conductances import ( COBA as COBA, CUBA as CUBA, diff --git a/brainpy/synplast.py b/brainpy/synplast.py index f551bc2cd..53fd65ad3 100644 --- a/brainpy/synplast.py +++ b/brainpy/synplast.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- +""" +This module has been deprecated since brainpy>=2.4.0. Use ``brainpy.dyn`` module instead. +""" + from brainpy._src.dynold.synplast.short_term_plasticity import ( STD as STD, STP as STP,