1212from brainpy import errors , tools
1313from brainpy .analysis import constants as C , utils
1414from brainpy .analysis .base import DSAnalyzer
15- from brainpy .base .collector import Collector
1615
1716pyplot = None
1817
@@ -91,7 +90,7 @@ def __init__(
9190 if not isinstance (target_vars , dict ):
9291 raise errors .AnalyzerError ('"target_vars" must be a dict, with the format of '
9392 '{"var1": (var1_min, var1_max)}.' )
94- self .target_vars = Collector (target_vars )
93+ self .target_vars = bm . Collector (target_vars )
9594 self .target_var_names = list (self .target_vars .keys ()) # list of target vars
9695 for key in self .target_vars .keys ():
9796 if key not in self .model .variables :
@@ -110,7 +109,7 @@ def __init__(
110109 for key in fixed_vars .keys ():
111110 if key not in self .model .variables :
112111 raise ValueError (f'{ key } is not a dynamical variable in { self .model } .' )
113- self .fixed_vars = Collector (fixed_vars )
112+ self .fixed_vars = bm . Collector (fixed_vars )
114113
115114 # check duplicate
116115 for key in self .fixed_vars .keys ():
@@ -125,7 +124,7 @@ def __init__(
125124 if not isinstance (pars_update , dict ):
126125 raise errors .AnalyzerError ('"pars_update" must be a dict with the format '
127126 'of {"par1": val1, "par2": val2}.' )
128- pars_update = Collector (pars_update )
127+ pars_update = bm . Collector (pars_update )
129128 for key in pars_update .keys ():
130129 if key not in self .model .parameters :
131130 raise errors .AnalyzerError (f'"{ key } " is not a valid parameter in "{ self .model } " model.' )
@@ -144,7 +143,7 @@ def __init__(
144143 raise errors .AnalyzerError (
145144 f'The range of parameter { key } is reversed, which means { value [0 ]} should be smaller than { value [1 ]} .' )
146145
147- self .target_pars = Collector (target_pars )
146+ self .target_pars = bm . Collector (target_pars )
148147 self .target_par_names = list (self .target_pars .keys ()) # list of target_pars
149148
150149 # check duplicate
0 commit comments